Hello, I used device plugin in and this plugin show platform - web but when i debug it in real device it also show platform - web and also instead of Android. And also push notifications plugin not behave correct because of platform detection. Recently I have migrated my app ionic 3 to 6. If you got my point please give any suggestions. Thanks
are you using this.platform.platforms() method but as per documentation platforms can return multiple values. Each possible value is a hierarchy of platforms. Cross check on browser it returning desktop and tablet and on emulator android ,phablet, capacitor, hybrid and desktop. I don't think you need such multiple returns. is that if not check for other plugins
@@techbinomial I did it in my ionic 3 easily but in ionic 6 its confused me how to get platform. I try to use this.platform.platforms() i got 4 object in array Android, ios, mobileweb, web. My push notifications plugin is not recognised platform it is throwing error that push notifications not used for web
Hello, I used device plugin in and this plugin show platform - web but when i debug it in real device it also show platform - web and also instead of Android. And also push notifications plugin not behave correct because of platform detection. Recently I have migrated my app ionic 3 to 6. If you got my point please give any suggestions. Thanks
What I understand is you are looking for plugin which shows on which platform your app is running ......... right ?
@@techbinomial yes, but i have already used platform from ' @ionic/angular' it is not showing right platform in my real device.
are you using this.platform.platforms() method
but as per documentation platforms can return multiple values. Each possible value is a hierarchy of platforms.
Cross check on browser it returning desktop and tablet
and on emulator
android ,phablet, capacitor, hybrid and desktop.
I don't think you need such multiple returns. is that if not check for other plugins
@@techbinomial I did it in my ionic 3 easily but in ionic 6 its confused me how to get platform. I try to use this.platform.platforms() i got 4 object in array Android, ios, mobileweb, web. My push notifications plugin is not recognised platform it is throwing error that push notifications not used for web
@@techbinomial I got the platform by this.platform.is('android'). But still push notifications not working on my real device because of platform.