Messaging app with notification alerts

Hi guys,
I’d like to start building a new app idea, but I’m uncertain wheter it’s possible with Corona or not.
One important feature about the app is the ability to receive messages (send from another user also using the app). The receiver should get a notification when a message is received, even when the application is not open. Is that possible with Corona?

Also, are there any new business apps created with Corona? (2015-2016)
I can only find old ones.

Kind regards
Bram

There are new business apps being created all the time. A few weeks ago I was helping someone with a Dr. Office ap.

Messaging apps are very doable with Corona. You will need an online service to exchange the messages.  We have several options for sending push notifications as well. Look at something like the PlayFab and OneSignal plugins.

Rob

Hi Rob,

I’ve used OneSignal before but don’t see how receiving notifications when receiving a new message would be done.

Is this link a step in the right direction? https://documentation.onesignal.com/docs/firebase-cloud-messaging-fcm

Would this be possible without writing any native code, so with the free Corona package?

Thanks Rob

We currently do not support Firebase Cloud Messaging, but the older GCM or Google Cloud Messaging. 

Receiving notifications is based on the state of the app. If the app is open and active, your device won’t get a notification alert instead your app gets a notification event with the payload included and your app can manage the inbound event and display it however you wish. If your app is backgrounded and you interact with the push notification from the tray, your app will be foregrounded and it will get the notification event. If your app is not running, not suspended in the background, it will be launched and the payload will come in as part of a “launchArgs” table that is the same content as the notification event.  If your app is either suspended or not running and you launch it by it’s icon, on iOS for certain, the notification will be lost. I think that may also be the case for Android.

You can look at the Push Notification sample app that we ship with the product to see how this works.

Rob

Hi Rob,
So I’d basically be able to get notifications even when the app is not running, but data send by the notification would be lost? Because that’d fit my needs!

Data would only be lost (potentially) if the app was not running and the user launched with the apps main icon and not with the notification. If they launch from the notification you will get the data either via an even or via launchArgs.

Rob

Yeah You can definitely create such app with corona. 

There are new business apps being created all the time. A few weeks ago I was helping someone with a Dr. Office ap.

Messaging apps are very doable with Corona. You will need an online service to exchange the messages.  We have several options for sending push notifications as well. Look at something like the PlayFab and OneSignal plugins.

Rob

Hi Rob,

I’ve used OneSignal before but don’t see how receiving notifications when receiving a new message would be done.

Is this link a step in the right direction? https://documentation.onesignal.com/docs/firebase-cloud-messaging-fcm

Would this be possible without writing any native code, so with the free Corona package?

Thanks Rob

We currently do not support Firebase Cloud Messaging, but the older GCM or Google Cloud Messaging. 

Receiving notifications is based on the state of the app. If the app is open and active, your device won’t get a notification alert instead your app gets a notification event with the payload included and your app can manage the inbound event and display it however you wish. If your app is backgrounded and you interact with the push notification from the tray, your app will be foregrounded and it will get the notification event. If your app is not running, not suspended in the background, it will be launched and the payload will come in as part of a “launchArgs” table that is the same content as the notification event.  If your app is either suspended or not running and you launch it by it’s icon, on iOS for certain, the notification will be lost. I think that may also be the case for Android.

You can look at the Push Notification sample app that we ship with the product to see how this works.

Rob

Hi Rob,
So I’d basically be able to get notifications even when the app is not running, but data send by the notification would be lost? Because that’d fit my needs!

Data would only be lost (potentially) if the app was not running and the user launched with the apps main icon and not with the notification. If they launch from the notification you will get the data either via an even or via launchArgs.

Rob

Yeah You can definitely create such app with corona.