Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
1.0.8 - revert back to support RN 0.28 intent
Browse files Browse the repository at this point in the history
  • Loading branch information
doctadre committed Aug 18, 2016
1 parent 8ee53b4 commit e7637bd
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,14 @@ public void scheduleLocalNotification(ReadableMap details) {
@ReactMethod
public void getInitialNotification(Promise promise) {
WritableMap params = Arguments.createMap();
Activity activity = getCurrentActivity();
if (activity != null) {
Intent intent = activity.getIntent();
Bundle bundle = intent.getBundleExtra("notification");
if (bundle != null) {
bundle.putBoolean("foreground", false);
String bundleString = convertJSON(bundle);
params.putString("dataJSON", bundleString);
}
Intent intent = mActivity.getIntent();
Bundle bundle = intent.getBundleExtra("notification");
if (bundle != null) {
bundle.putBoolean("foreground", false);
String bundleString = convertJSON(bundle);
params.putString("dataJSON", bundleString);
}

promise.resolve(params);
}

Expand Down

0 comments on commit e7637bd

Please sign in to comment.