spyro
spyro

Reputation: 515

IBM Worklight 5.0.6 - Push notifications error: "Error while trying to retrieve device token from the mobile operating system"

I'm trying to add push notifications to my app but I can't get the sample project to work.

This is what I did:

Failed registering for push notifications. The application will not be able to receive notifications

LogCat gives me the following messages:

10-22 06:07:11.178: E/SQLiteLog(2600): (14) cannot open file at line 30191 of [00bb9c9ce4] 10-22 06:07:11.178: E/SQLiteLog(2600): (14) os_unix.c:30191: (2) open(/CachedGeoposition.db) - 10-22 06:10:58.392: W/WLDroidGap(2600): unregisterReceivers:Receiver not registered: com.worklight.androidgap.plugin.Push$1@b419ff38 10-22 06:10:58.402: W/WLDroidGap(2600): unregisterReceivers:Receiver not registered: com.worklight.androidgap.plugin.Push$3@b41a0458 10-22 06:10:58.442: E/PushApplication(2600): Error while trying to retrieve device token from the mobile operating system.

Upvotes: 2

Views: 366

Answers (1)

Idan Adar
Idan Adar

Reputation: 44516

I believe the following will resolve your problem, which is setting up push notifications in the Android Emulator; to have push notifications in the emulator it is required to install from the Android SDK Manager some support libraries.

  1. First, make sure that you have followed all steps described in the Push Notifications training module, specifically slides 41 and 47.
  2. Follow the steps described in the answer to this SO question:

enter image description here


In your updated question you do not mention whether you've installed the push notifications feature library, and you must install it.

Upvotes: 3

Related Questions