M
M
Madion2016-11-10 12:47:27
Objective-C
Madion, 2016-11-10 12:47:27

How can you know that a push notification has been received in iOS (Objective-C)?

How can you know that a push notification has been received in iOS (Objective-C)?
For example, in android there is a method: onMessageReceived from com.google.android.gms.gcm.GcmListenerService.
And in Objective-C - how is it done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2016-11-17
@DaskOFF

Handling Remote Notifications
https://developer.apple.com/library/content/docume...

I
iogurt89, 2016-11-17
@iogurt89

If the application is completely unloaded, then nothing. In this case, if a notification arrives with the Alert field filled in, the system will process such notification itself and display it.
If the application is in the device's memory, then this method will work .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question