Backendless Support
 
Answered

How can I implement backendless push notification in swift 3?

Hello

I tried following method in appDelegate.swift file in order to use backendless push notification.

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { backendless.sahredInstance().initApp(APP_ID, secret:SECRET_KEY, version:VERSION_NUM) backendless.sahredInstance().messaging.registerForRemoteNotifications() return true}

But I have failed.

there are no exist above statement.

please check following screenshot.

http://prntscr.com/hpi8ew

Would you please let me know the solution?

Regards

Andrei

Leave a Comment

Comments (4)

photo
1

Yes, you're right. The registerForRemoteNotifications method is provided by Apple, not by Backendless. Please, check this documentation: https://backendless.com/docs/ios/doc.html#device-registration.

Regards, Olga

photo
1

I see.

I understand.

But, I referenced following linked document.

https://backendless.com/documentation/messaging/ios/messaging_device_registration.htm

Regards, Andrei

photo
1

This link is for Backendless v3.

And this link is for Backendless v4.

Regards, Olga

photo
1

Ah, I understand.

Thanks for your helping.

Thanks Olga

Regards

Andrei