iOS Question Sub Application_RemoteNotification (Message As Map, CompletionHandler As CompletionHandler)

schimanski

Well-Known Member
Licensed User
Longtime User
I have changed my silent-push app to the new

B4X:
Sub Application_RemoteNotification (Message As Map, CompletionHandler As CompletionHandler)
, but it doesn't work. I get the follwing messages in debug:

After the first incoming push:
B4X:
didReceiveRemoteNotification fetchCompletionHandler
Application_Remotenotification

After the second incoming push:
B4X:
didReceiveRemoteNotification fetchCompletionHandler
Warning: Application delegate received call to -application:didReceiveRemoteNotification:fetchCompletionHandler: but the completion handler was never called.

I set the 'CompletionHandler.Complete' at different possitions in my RemoteNotification-sub, but always the same message.

For me, it is always not clear, when to call CompletionHandler.Complete because the things my app needs to do are made in other subs. I don't handle everything in the Application_RemoteNotification.
 
Top