Reputation: 515
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:
Entered id and key in application-descriptor.xml like so:
<pushSender key="XXX senderId="YYY"/>
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
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.
In your updated question you do not mention whether you've installed the push notifications feature library, and you must install it.
Upvotes: 3