RSS

Android Push Notification

01 Oct

logo

Join Community: http://Community.AppyBuilder.com

A push notification is a message that pops up on a mobile device. App publishers can send them at any time; users don’t have to be in the app or using their devices to receive them. They can do a lot of things; for example, they can show the latest news scores, get a user to take an action, such as downloading an app, or let a user know about an event. Push notifications look like SMS text messages and mobile alerts, but they only reach users who have installed your app.

AppyBuilder now includes a non-visible component called OneSignalPush that can be used in the app for receiving push messages. Once setup up, you can easily push messages to anyone who has installed your app. Users will receive the notification, even if the app is closed. The notification will appear in the device status bar and the app icon will automatically be updated to indicate that it it has received a notification:

User can swipe down the status bar to view notification detail and can tap it for further action:


App Setup

To prepare app for push messages, drag OneSignalPush component and drop onto designer as shown below:

This component has only one designer property that requires an App ID. Every app, should have its own unique App ID. The App ID will be used, in dashboard, to send notification to app. For obtaining App ID, please see AppID Setup section below.


App ID Setup

OneSignalPush uses SDK provided by OneSignal.com. The SDK is integrated into AppyBuilder, making it super-simple for your app to receive push messages.

The app requires a unique App ID. To generate a unique ID, create an account at OneSignal.com, and then follow steps 1-3 in their documentation to generate a unique id: https://documentation.onesignal.com/docs/generate-a-google-server-api-key

This generated ID should be used in the AppyBuilder OneSignalPush property:

You are now ready to push notifications to your app. This can be done during Live Testing or when you have generated .apk.


Sending Push Notifications

For sending notifications, you must have completed “App ID Setup” section above.

The complete documentation can be found HERE, but here is the quick setup:

  • Sign into OneSignal.com to log into dashboard
  • From left pane, select App Setting, and then “Keys & IDs”. This will show you your App ID which will need to be copied into AppyBuilder OneSignalPush Designer Property

  • Next, select “New Message” -> “Send to Everyone” and then select “NEXT”

  • Next, enter the title and description that you like to show on user’s device and then select NEXT:

  • Next, you can enter optional information, such as “Large Icon” and “Big Picture”. See 3rd image below to see where these images display on user’s device. Also, you’ll be able to enter “Launch URL”. This URL will be opened IF the user taps on your notification

  • Select NEXT and you’ll be able to send the notification either immediately, or schedule it for sending.
  • Once messages are sent, you’ll be able to track and view how many users have responded by viewing your messages:

For additional tutorial, please follow link to http://help.AppyBuilder.com

Need mare info? Post question here: http://Community.AppyBuilder.com

Website: http://AppyBuilder.com

Share, Like us below 🙂

 

Advertisements
 
2 Comments

Posted by on October 1, 2017 in Uncategorized

 

2 responses to “Android Push Notification

  1. Husain Al-Haboubi

    October 1, 2017 at 5:25 pm

    I love what you’re doing. Thank you

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: