Backendless Support
 
Answered

How to send push notification to unregistered device in backendless swift?

Hello,

I have implemented push notification function using Backendless in my iOS app.

It works well now.

But, i have one problem.

It is to send push notification to unregistered device as like Firebase phone number authentication.

Is there any way to send push notification to unregistered device?

Regards

Andrei

Leave a Comment

Comments (12)

photo
1

Hello,

A push notification is sent either through Apple or Google servers. If a device has not registered with Apple/Google and then with Backendless, it would be impossible to deliver a push notification to the device.

Regards,

Mark

photo
1

Hello, Mark

Do you know whatsapp?

If you know whatsapp, in whatsapp, when user send SMS invite to any own contact's user, the contact's user can receive push notification from user.

and also in firebase phone number authentication,

after user input his phone number, when user send request for phone number verification, user can receive verification code from apple server.

Regards

Andrei

photo
1

In ANY app a push notification can be received ONLY because the device has registered with the provider. If you register device with Backendless, then you can send push notifications. Phone number authentication is absolutely irrelevant here.

photo
1

Hello, Mark

I am sorry, Can you download "Whatsapp" on appstore?

This app is free.

In "whatsapp", would you please check "Invite friend" function?

Very sorry!

This problem is very important for my project.

Regards

Andrei

photo
1

What is the point of that exercise? )) I already know how whatsapp works. Their app REGISTERS with the backend to receive push notifications.

photo
1

Let's forget about push notifications for a moment. Could you describe what you'd like to accomplish in your app? It would be the best if you could describe it not from a technical point of view, but rather from the user experience.

photo
1

Hello, Mark

Sorry for the delay!

yes, let me explain about my project.

I am making chat app now.

our app have group and private chat function.

In my chat app, user can only talk the other one of user's phone address book that use my app.

If nobody use my app in user's phone address book, user can't anyone in my app and can't talk.

So I have tried to send SMS invite to anyone of user's address book.

So the other one can receive SMS invite from user.

I am going to insert push notification function with SMS message in here.

In here, the other one of user's phone address book have unregistered device.

Make sense?

Regards

Andrei

photo
1

Hi Andrei,

If you select a user from the address book, there are two possible scenarios:

  1. The other user already has your app installed
  2. The other user does not have the app installed.

If they do not have the app installed, what should happen then? The system sends an SMS saying that someone invited them? What will happen next?

Mark

photo
1

Hello, Mark

Right.

when user send SMS invite to someone that don't use the app, the SMS message include the app url of app store.

So someone can download my app in app store and he can register and login to my app.

Regards

Andrei

photo
1

So in here, someone have unregistered device.

I need to send push notification with SMS message to someone.

Regards

Andrei

photo
1

Hi Andrei,

I think I understand the source of confusion. Push notification and SMS message are two different things.

When you send an SMS message, it is not a push notification. In fact, it is a completely different type of delivery. Here are a few articles describing the differences:

https://thenextweb.com/future-of-communications/2015/02/09/sms-vs-push-vs-email/

https://medium.com/@Natashawilliams/sms-vs-push-notifications-ac4e605664ac

SMS messages can be sent with a provider like Twilio (which Backendless integrates with). To send an SMS message, a device does not need to be registered with the backend, all you need to know is the phone number:

https://www.twilio.com/docs/api/messaging/send-messages

Push notifications require device's registration with the backend.

Hope this helps.

Regards,

Mark

photo
1

Thanks for your helping

Very Thanks!, Mark

Regards

Andrei