iOS Question Application_RemoteNotification is not called

gglaz

Member
Licensed User
Longtime User
Hello
the RemoteNotification method is not called.
However, the native method as inline code works.
What could be the reason?

that doesn't work anymore:
B4X:
Private Sub Application_RemoteNotification (Message As Map, CompletionHandler As CompletionHandler)

    LogColor("Application_RemoteNotification",Colors.Green)

        CompletionHandler.Complete

End Sub

it is working:
B4X:
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
    fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
    NSLog(@"didReceiveRemoteNotification ");
  // Print full message.
  NSLog(@"%@", userInfo);

  completionHandler(UIBackgroundFetchResultNewData);
}

I am using B4i version 8.10 and iOS 16.5.1.
 
Last edited:

gglaz

Member
Licensed User
Longtime User
Oh I found my mistake.
Application_RemoteNotification must be called in Main and not in ServiceFirebase.
 
Upvote 0
Solution
Top