Oracle Help Center | Oracle Push Cloud Service (Standalone) title

Android FAQs

General Questions

How large is the Android PushIO SDK?

PushIO Android SDK is currently 171KB. This size excludes the Android Support Library v4 and Google Play services library, which may add 1 to 2 MB if they are not in your project already.

MultiDex Support with PushIO SDK

Starting with PushIO SDK 6.31, a new class PIOApplication has been introduced for improving the detection of app life cycle events. This class is also required for proper handling of In-App Messages. If you have been using MultiDex in the past by extending the MultiDexApplication class, you will need to switch to one of the alternatives for Multidexing as explained in the Configure Apps with Over 64K Methods topic in the Android Studio User Guide. For more information about MultiDex, see the MultiDex topic in the Android Developers reference.

About Firebase Cloud Messaging (FCM)

Google Cloud Messaging (GCM) has been rebranded to Firebase Cloud Messaging (FCM). Apps using PushIO SDK with GCM today should not experience any issues. However, Google strongly recommends that you import your GCM Google Cloud project to Firebase as soon as possible.

 

Troubleshooting

Capturing Log Files

1) In Android Studio, select Android Monitor from the bottom of the window. (if you don't see this button, go to View > Tool Windows and select Android Monitor)

2) Select your device from the drop down on the left of the window.

3) Ensure no filters are set, search box has 'pushio' as text and the type is set to Verbose.

4) Select the lines you would like to share (or all lines using Ctrl+A or Cmd+A) and paste in a text file to send over to the support team.

Notifications delayed / not shown

If you have read through the setup guides and still not able to receive push notifications:

At times the push notifications might get delivered after a delay, this could be due to the device being in a power-save mode. Some devices may enter into a power-saving or low power mode wherein the network communication is suspended at frequent time intervals causing the push notification delivery to be delayed.

No push notifications received after upgrading to SDK 6.31

If registration was successful but the device has not received push notifications:

1) In the Firebase console, select your project, click the Settings menu icon (the icon that resembles a gear), then choose 'Project Settings' and under 'Cloud Messaging' tab, you should see the new format Server Key along with the old Server Key.

2) Copy the new Server Key and add it to the PushIO/RI dashboard as shown in step [1.2] of our Step-by-Step guide.

If the above steps don't work, capture the logs from the device at the time of starting or launching your app, and share it with our support team.

Invalid Google Credentials

The Google Server API key is used for authenticating all communications with GCM/FCM. If you get this error:

Duplicate Notifications

Notifications are created by the PushIO SDK as a default behavior. However, you might want to change this to handle building/displaying the notifications yourself. If in doing so, you start seeing duplicate notifications, it is possible that the SDK is not aware of your notification handling.

To let the SDK know that you would be handling the notifications yourself, remember to set the following flag from your BroadcastReceiver:

public void onReceive(Context context, Intent intent) {

    CustomNotificationService.runIntentInService(context, intent);

    Bundle extras = getResultExtras(true);

    extras.putInt(PushIOManager.PUSH_STATUS, PushIOManager.PUSH_HANDLED_NOTIFICATION);

    setResultExtras(extras);

}

See section Optional - Customize Incoming Push Messages and Notification Taps, located near the bottom of the Step-by-Step guide topic for more information.