You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The In app Message APIs dependes on the AEP Messaging 1.1.0. This version is not yet published to the Cocoapods but is available in the public [github repository](https://github.com/adobe/aepsdk-messaging-ios/tree/staging). Add the following pod dependency in your applications Podfile under the application target.
28
+
The In app Message APIs depends on the AEP Messaging, v1.1.0. This version is not yet published to the Cocoapods but is available in the public [github repository](https://github.com/adobe/aepsdk-messaging-ios/tree/staging). Add the following pod dependency in your applications Podfile under the application target.
29
29
30
30
```Ruby
31
31
target 'AEPSampleApp'do
@@ -134,17 +134,17 @@ Handling push notifications must be done in native (Android/iOS) code for the Re
Push Mesage related APIs in the Messaging SDK must be called from the native Android/iOS project of React Native app.
137
+
## Push Messaging APIs usage
138
+
Push messaging APIs in the SDK must be called from the native Android/iOS project of React Native app.
139
139
140
140
###### [iOS API usage](https://github.com/adobe/aepsdk-messaging-ios/blob/main/Documentation/APIUsage.md)
141
141
142
142
##### [Android API usage](https://github.com/adobe/aepsdk-messaging-android/blob/main/Documentation/APIUsage.md)
143
143
In Android, [MessagingPushPayload](https://github.com/adobe/aepsdk-messaging-android/blob/main/Documentation/push/MessagingPushPayload.md#messagingpushpayload-usage) can be used for getting the notification attributes like title, body, and action. These are useful for push notification creation.
144
144
145
-
## In App Messages API reference
145
+
## In-app messages API reference
146
146
### refreshInAppMessages
147
-
Initiates a network call to retrieve remote In-App Message definitions.
147
+
Initiates a network call to retrieve remote in-app message definitions.
Sets the UI Message delegate to listen the Message lifecycle events.
160
+
Sets the MessagingDelegate in AEPCore to listen the Message lifecycle events.
161
161
162
162
**Syntax**
163
163
```javascript
@@ -189,7 +189,7 @@ const messagingDelegate = {
189
189
```
190
190
191
191
### saveMessage
192
-
Call to the saveMessage leads to in-memory caching of the Message object. Cached Message object can be later use to show message. This function should be called from **shouldShowMessage** of MessagingDelegate.
192
+
Natively caches the provided Message object in-memory. Cached Message object can be later use to show message or perform other actions on the Message object. This function should be called from **shouldShowMessage** of MessagingDelegate.
193
193
194
194
**Syntax**
195
195
```javascript
@@ -276,19 +276,19 @@ var message: Message;
276
276
message.setAutoTrack(true);
277
277
```
278
278
279
-
### clearMessage
279
+
### clear
280
280
Clears the reference to the in-memory cached Message object. This function must be called if a Message was saved by calling "Messaging.saveMessage" but no longer needed. Failure to call this function leads to memory leaks.
281
281
282
282
283
283
**Syntax**
284
284
```javascript
285
-
clearMessage();
285
+
clear();
286
286
```
287
287
288
288
**Example**
289
289
```javascript
290
290
var message: Message;
291
-
message.clearMessage();
291
+
message.clear();
292
292
```
293
293
294
294
## Programatically control the display of in-app messages
@@ -307,7 +307,7 @@ type MessagingDelegate = {
307
307
urlLoaded(url: string, message: Message):void;
308
308
};
309
309
```
310
-
Object of type MessagingDelegate can be create as shown below:
310
+
Objects of type MessagingDelegate can be created as shown below:
311
311
```javascript
312
312
constmessagingDelegate= {
313
313
@@ -343,22 +343,22 @@ function shouldShowMessage(message: Message): boolean {
343
343
}
344
344
```
345
345
346
-
Another option for the developer is to store a reference to the Message object, and call the show() method on it at a later time. App developer also have to call _Messaging.saveMessage(message)_ from _shouldShowMessage_ for caching the Message on the native side of the RN package.
346
+
Another option for the developer is to store a reference to the Message object, and call the show() function on it at a later time. App developer also have to call _Messaging.saveMessage(message)_ from _shouldShowMessage_ of MessagingDelegate for caching the Message on the native side of the RN AEPMessaging package.
347
347
Continuing with the above example, the developer has stored the message that was triggered initially, and chooses to show it upon completion of the other workflow:
0 commit comments