Skip to content

Commit

Permalink
Merge pull request #5 from JoaoCaixinha/master
Browse files Browse the repository at this point in the history
Error correction in GcmReceiver and library intent service registration
  • Loading branch information
realtime-framework committed Oct 30, 2015
2 parents 00b24bc + 8280b45 commit 552ee2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-realtimemessaging-android",
"version": "1.0.2",
"version": "1.0.4",
"description": "The Realtime Framework Cloud Messaging Pub/Sub client for React-Native Android",
"main": "RCTRealtimeMessagingAndroid.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion reactnativemessagingandroid/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<category android:name="co.realtime.reactnativemessagingandroid" />
</intent-filter>
</receiver>

<service android:name="ibt.ortc.extensibility.GcmOrtcIntentService" />
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void createNotification(Context context, Bundle extras)
Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(packageName);
Class className = launchIntent.getComponent().getClass();

Intent notificationIntent = new Intent(context, className);
Intent notificationIntent = context.getPackageManager().getLaunchIntentForPackage(packageName);
notificationIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
notificationIntent.putExtra("pushBundle", extras);

Expand Down

0 comments on commit 552ee2a

Please sign in to comment.