schimanski Well-Known Member Licensed User Longtime User Jul 25, 2016 #1 I have changed my silent-push app to the new Code: Copy 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: Code: Copy didReceiveRemoteNotification fetchCompletionHandler Application_Remotenotification After the second incoming push: Code: Copy 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.
I have changed my silent-push app to the new Code: Copy 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: Code: Copy didReceiveRemoteNotification fetchCompletionHandler Application_Remotenotification After the second incoming push: Code: Copy 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.
Erel B4X founder Staff member Licensed User Longtime User Jul 25, 2016 #2 Did you remove the modified main.m file from your project? Upvote 0
schimanski Well-Known Member Licensed User Longtime User Jul 26, 2016 #3 No. I use the combined main.m -file which is build for fetchdownload and silent notification: https://www.b4x.com/android/forum/threads/background-fetch-downloads.56022/ Which one do i need? Last edited: Jul 26, 2016 Upvote 0
No. I use the combined main.m -file which is build for fetchdownload and silent notification: https://www.b4x.com/android/forum/threads/background-fetch-downloads.56022/ Which one do i need?
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2016 #4 Silent notifications no longer need a special main.m file. If you want to implement fetch download as well then you need to use the one with only that feature. Upvote 0
Silent notifications no longer need a special main.m file. If you want to implement fetch download as well then you need to use the one with only that feature.
schimanski Well-Known Member Licensed User Longtime User Jul 26, 2016 #5 Thank you very much... Upvote 0