Did I find a bug in Edge mobile browser?

%3CLINGO-SUB%20id%3D%22lingo-sub-1661350%22%20slang%3D%22en-US%22%3EDid%20I%20find%20a%20bug%20in%20Edge%20mobile%20browser%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1661350%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20working%20on%20a%20project%20where%20push%20notifications%20to%20a%20web%20page%20are%20needed.%20So%20I%20am%20using%20firebase%20to%20send%20messages%20and%20a%20web%20page%20to%20receive%20messages.%20This%20works%20flawless%20in%20Google%20Chrome%20(desktop%20and%20mobile)%20It%20does%20work%20in%20the%20desktop%20version%20of%20Edge%20but%20it%20doesn't%20work%20for%20the%20mobile%20version%20of%20Edge%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOkay%2C%20when%20jumping%20a%20little%20deeper%20in%20the%20technique....%20My%20service%20worker%20is%20actually%20receiving%20the%20push%20event%20of%20Google%20Firebase%20(I%20use%20the%20test%20interface%20of%20firebase%20itself%20to%20make%20sure%20the%20send%20message%20is%20correct)%20but%20in%20case%20of%20mobile%20edge%20the%20data%20object%20in%20that%20pushevent%20is%20null%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22petervledder_0-1599983008912.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218013i4546085A739C7E97%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22petervledder_0-1599983008912.png%22%20alt%3D%22petervledder_0-1599983008912.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20remotely%20debug%20the%20page%20and%20go%20to%20Application%20%26gt%3B%20Push%20Messaging%20I%20can%20start%20recording%20incoming%20push%20messages.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20see%20a%20notification%20is%20coming%20in%20the%20page%20but%20the%20event%20dispatched%20is%20showing%20no%20data%20(No%20metadata%20for%20this%20event)%20while%20in%20the%20desktop%20version%20it%20displays%20the%20json%20that%20was%20received%20just%20fine.%26nbsp%3B%20An%20other%20thing%20that%20looks%20odd....%26nbsp%3B%20In%20mobile%20edge%20there%20is%20no%20instance%20id%20displayed%20in%20the%20push%20messaging%20recording%20while%20in%20the%20desktop%20version%20it%20is%20displaying%20an%20instance%20ID%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22petervledder_1-1599983446321.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218014i7E4497F0B0A9D668%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22petervledder_1-1599983446321.png%22%20alt%3D%22petervledder_1-1599983446321.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20my%20service%20worker%20I%20am%20not%20doing%20any%20fancy%20stuff...%20just%20listening%20for%20a%20push%20event%20and%20(for%20now)%20writing%20it%20to%20the%20console%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3Eself.addEventListener('push'%2C%20function(event)%20%7B%0A%20%20%20%20console.log(event)%0A%20%20%20%20const%20promiseChain%20%3D%20self.registration.showNotification(event.data.json)%3B%0A%0A%20%20%20%20event.waitUntil(promiseChain)%3B%0A%7D)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20me%20the%20service%20worker%20is%20the%20lowest%20level%20of%20intercepting%20a%20message%20so%20when%20comparing%20the%20incoming%20push%20event%20between%20mobile%20and%20desktop%20edge%20I%20can%20only%20conclude%20that%20this%20is%20a%20bug%20in%20mobile%20edge%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anybody%20have%20similar%20issues%3F%20Does%20anybody%20know%20if%20this%20is%20a%20know%20issue%3F%20Is%20it%20addressed%3F%20Is%20there%20a%20status%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMobile%20Edge%20version%3A%2045.07.4.5059%3C%2FP%3E%3CP%3EAndroid%20version%3A%2010%3B%20AC2003%20Build%2FQKQ1.200412.002%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20your%20help!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPeter%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello all!

 

I am working on a project where push notifications to a web page are needed. So I am using firebase to send messages and a web page to receive messages. This works flawless in Google Chrome (desktop and mobile) It does work in the desktop version of Edge but it doesn't work for the mobile version of Edge :(

 

Okay, when jumping a little deeper in the technique.... My service worker is actually receiving the push event of Google Firebase (I use the test interface of firebase itself to make sure the send message is correct) but in case of mobile edge the data object in that pushevent is null:

 

petervledder_0-1599983008912.png

 

If I remotely debug the page and go to Application > Push Messaging I can start recording incoming push messages. 

 

I can see a notification is coming in the page but the event dispatched is showing no data (No metadata for this event) while in the desktop version it displays the json that was received just fine.  An other thing that looks odd....  In mobile edge there is no instance id displayed in the push messaging recording while in the desktop version it is displaying an instance ID:

 

petervledder_1-1599983446321.png

 

In my service worker I am not doing any fancy stuff... just listening for a push event and (for now) writing it to the console:

 

 

 

self.addEventListener('push', function(event) {
    console.log(event)
    const promiseChain = self.registration.showNotification(event.data.json);

    event.waitUntil(promiseChain);
});

 

 

 

For me the service worker is the lowest level of intercepting a message so when comparing the incoming push event between mobile and desktop edge I can only conclude that this is a bug in mobile edge?

 

Does anybody have similar issues? Does anybody know if this is a know issue? Is it addressed? Is there a status?

 

Mobile Edge version: 45.07.4.5059

Android version: 10; AC2003 Build/QKQ1.200412.002

 

Desktop Edge version: 85.0.564.51

 

Thanks in advance for your help!

 

Regards,

 

Peter

 

0 Replies