Skip to content

Sample doesnt work in iOS version 14. Are there any alternatives ? #107

@varshavsr

Description

@varshavsr

As the deviceRegistrationId format is changed from iOS 13 and above, the token received is in format
Push Plugin register success: {length = 32, bytes = 0x12345678 12345678 12345678 12345678 ... 12345678 1234567b }

In iOS app crashes at,

  • (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData )deviceToken {
    if (self.callbackId == nil) {
    NSLog(@"Unexpected call to didRegisterForRemoteNotificationsWithDeviceToken, ignoring: %@", deviceToken);
    return;
    }
    NSLog(@"Push Plugin register success: %@", deviceToken);
    SBNotificationHub
    hub = [[SBNotificationHub alloc] initWithConnectionString:self.connectionString
    notificationHubPath:self.notificationHubPath];
    [hub registerNativeWithDeviceToken:deviceToken tags:nil completion:^(NSError error) {*

Any one was able to resolve this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions