-
-
Notifications
You must be signed in to change notification settings - Fork 45
How to receive and Handle Messages from APN in ios nativescript. #216
Comments
@priyangamani use the notification callback for iOS as shown here: notificationCallbackIOS: (message: any) => {
console.log("Message : " + JSON.stringify(message));
} |
I tried this callback but it's not firing.
…On Fri, Apr 27, 2018, 6:57 PM Nick Iliev ***@***.***> wrote:
@priyangamani <https://github.com/priyangamani> use the notification
callback for iOS as shown here
<https://github.com/NativeScript/push-plugin#using-the-plugin-in-ios>:
notificationCallbackIOS: (message: any) => {
console.log("Message : " + JSON.stringify(message));
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#216 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFwiNR0fLYtfya7fG_8HBy4mFdNra4Lgks5tsvmygaJpZM4Tp5US>
.
|
@priyangamani are you receiving the notifications? DO you have your APNS certificate set? |
@NickIliev yes able to receive the notification .I have the APN cert. |
I got the push notifications are working, but I don't know how to extract the response. |
I am interested in the solution for iOS, too. Here's our current setup in Android: In iOS, a device receives a push notification while the app is closed. The push notification contains the same data as an Android one (we're using Firebase to send the push notifications) but I don't know how to access that data. If the push notification is tapped, the app is opened and the homepage is displayed, but we'd prefer a different page to be displayed. How can I access the push notification's data so that we can control which page is displayed? Thanks in advance! |
@JDillon08 could you share the code snippet how you implemented Android setup so you can open specific page. Thanks |
@bachras Here's the code that we use to navigate to a specific page after resuming the app via tapping a push notification on an Android device:
|
How to retrieve and handle the payload data from the app in background & foreground (APN Message)in ios.In Payload key reference i receive multiple items.How to i check and get the data.Please give some reference.
Please give some reference.
{
"aps" : {
"alert" : {
"body" : "great match!",
"title" : "Portugal vs. Denmark",
},
"badge" : 1,
},
"customKey" : "customValue"
}
The text was updated successfully, but these errors were encountered: