I added next code to delegate file in xcode:
- (void)application:(UIApplication \*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData\*)deviceToken { NSLog(@"My token is: %@", deviceToken); }
When I tap on circle in console I see
My token is: \<fdc49bc4 0f5cc67b ...\>
It means that device is got token. However, onNotification event in Runtime:addEventListener(‘notification’, onNotification) doesn’t work.