Commit 14e44e78 authored by Masahiro Nishimi's avatar Masahiro Nishimi Committed by Libin Lu

Fix FCMEvent.Notification callback argument (#292)

parent 958f3124
...@@ -127,7 +127,7 @@ FCM.on = (event, callback) => { ...@@ -127,7 +127,7 @@ FCM.on = (event, callback) => {
return DeviceEventEmitter.addListener(event, async(data)=>{ return DeviceEventEmitter.addListener(event, async(data)=>{
data.finish = finish; data.finish = finish;
try{ try{
await callback(); await callback(data);
} catch(err){ } catch(err){
console.error('Notification handler err', err) console.error('Notification handler err', err)
throw err; throw err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment