Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update to use job intent service
  • Loading branch information
vimanyu committed Aug 5, 2021
commit d8f77e2f2fd1f6ce5f19371bbde54fa502b77ffb
1 change: 1 addition & 0 deletions messaging/testapp/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
android:exported="false" >
</service>
<service android:name="com.google.firebase.messaging.MessageForwardingService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="false" >
</service>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected void onNewIntent(Intent intent) {
message.setAction(MessageForwardingService.ACTION_REMOTE_INTENT);
message.putExtras(intent);
message.setData(intent.getData());
startService(message);
MessageForwardingService.enqueueWork(this, message);
}
setIntent(intent);
}
Expand Down