Migration from 4.3.X to 4.4.X+
The migration from the version 4.3.X to the 4.4.X version is pretty simple. You just have to add one parameter to the APLocalConfiguration in the Application class : the private Key.
Your getAppsPanelConfiguration should look like something like this :
@Override
public APLocalConfiguration getAppsPanelConfiguration() {
APLocalConfiguration mAPLocalConfiguration = new APLocalConfiguration(this,
APConstants.APP_NAME,
APConstants.APP_KEY,
APConstants.APP_PRIVATE_KEY,
APConstants.PROJECT_ID_GOOGLE,
R.mipmap.ic_launcher);
return mAPLocalConfiguration;
}
As parameter of APLocalConfiguration you must provide these elements:
- The context of the application
- appname : the name of your app on the Apps Panel BackOffice.
- appkey : the key corresponding to your app on the Apps Panel BackOffice.
- privatekey: Find yours on the Apps Panel back office
- googleid : If you want to configure the pushs with the Apps Panel SDK, go to Google Developers.
Follow the steps below: Pick A Platform, Android App, Then enter the name of your application and the name of its package. Then select Choose and configure services, Cloud Messaging, Generate configuration files and finally replace googleid in SDK by Sender ID provided by Google. Please note that the required ID is number only ! - The icon to display in the push when it occurs. As a reminder, since Lolipop, the notification icons must be blank.
appName
,appKey
andappSecret
are required. Your app will not be able to communicate with the back end without them, and may even crash.
Updated about 7 years ago