Dropsource is an online platform for developing Android and iOS applications without coding. The platform also lets you download the source code for your app so you can make changes and subsequently publish into the app store (note: downloading the source code is a paid feature). If you’re looking to add support for push notifications to your Dropsource apps, Backendless fits right in with relatively simple integration. When you add Backendless push notifications, you can instantly benefit from the following features:
Dynamic audience targeting – the audience of the published notifications can be customized with a query.
The video below includes a demonstration of an Android Dropsource app integrated with Backendless Push Notifications, followed by a detailed overview of the actual integration process. The integration instructions are outlined in detail in this post following the video.
Integration Instructions
Download the source code for your Dropsource app and open the project in Android studio.
Make sure you can build the project. If the build process results in the following error:
Configuration on demand is not supported by the current version of the Android Gradle plugin
since you are using Gradle version 4.6 or above. Suggestion: disable configuration on demand
by setting org.gradle.configureondemand=falsein your gradle.properties file or use a Gradle
version less than 4.6.
Navigate to the Android Studio properties, select Build, Execution, Deployment, then Compiler. Disable the Configure on demand option:
Add Firebase to your project. This is required to enable FCM (Firebase Cloud Messaging), a service by Google which delivers push notifications to Android apps. Check the video for instructions (starting at 12:01). Most importantly, this step includes:
Adding google-services.json to the /app directory of your project
Adding the following two dependencies into the dependencies element of /app/build.gradle:
Register FCM server key with Backendless. You can see this step in the video at 17:46.
Add the Backendless dependency to your project. The simplest way to do this is by adding the following line to the dependencies element of /app/build.gradle: (you can check the latest version number of the Backendless SDK in the Maven Central repository):
Register the Backendless Push service in Android manifest. Add the following configuration into the application element of your app’s AndroidManifest.xml file:
Initialize Backendless SDK in your application. This code needs to be executed once, it makes sense to put it right into the main activity of the app. In the video the code is added in the setup() method of the DeviceRegistration activity:
Register the device with FCM and Backendless. The code below uses the dropsourcechannel messaging channel. If you registered the FCM server key with a specific channel (step #4 above), the channel must match. Otherwise, if the FCM server key is registered for all channels, then you can register the device with any channel – you can use the channel name for the logical grouping of the registered devices:
Run the app and send push notifications from Backendless. For an overview of Backendless Push notifications capabilities, see the overview video. More information about Backendless Push Notifications is also available in the developer guide.
Choosing the best no-code app builder for your project can be a daunting task. In this article, we walk you through the process and highlight some of our favorites.
Thunkable is a no-code app builder specializing in iOS and Android mobile apps. When you integrate a feature-rich no-code Backendless backend with your Thunkable app, you get a visual relational database, user management, bulletproof security, highly-scalable serverless hosting, and much more.