Thu, 22 Jul 2021 08:20:58 GMT
Join the conversation at slack.cordova.io
Wed, 21 Jul 2021 10:46:14 GMT
@rene.rossi says
Hi there, Im new on deployin app on Apple devices and im a bit stuck at the moment to inspect the app on Phone and/or emulator. If i open Safari with the desired inspector i get only 3 Tabs (Quellen,Konsole, Prüfung) and no further functionality.
What could i check whats going wrong here. If is use Chrom with chrome://inspect the is also no device.
Wed, 21 Jul 2021 11:50:26 GMT
@rene.rossi says
And no, as i read on stack overflow there are no more hidden tabs:
Wed, 21 Jul 2021 11:51:21 GMT
@rene.rossi says
Wed, 21 Jul 2021 11:56:07 GMT
@norman137 says
You may need to use the Safari Tech Preview on your mac instead of the production release version. https://developer.apple.com/safari/technology-preview/
Wed, 21 Jul 2021 11:57:32 GMT
@norman137 says
In my experience, Debugger issues are related to the iphone safari version being ahead of the macOS safari version, and usually using the safari tech preview fixes that.
Wed, 21 Jul 2021 18:13:46 GMT
@dkirschner43 says
Hello all i am also deploying a ios app from cordova. I am using Playcanvas as my web framework. I think i have everything working except there is no audio. I have seen people talk about adding cordova-plugin-media. If i did this i will have to refactor how my sound is played in the app. Do i need to go through all of this or is there an easier way?
Wed, 21 Jul 2021 18:28:39 GMT
@norman137 says
This should be confirmed but i think the ios webview only allows audio playback from a user generated event, such as a trusted click event. Quickest way to test this is to add a regular dom node like a button or something and use
.addEventListener('click', function() { myAudio.play(); });
and see if your audio works that way. If so, that may explain why your audio isn‘t working. Events should have atrusted
attribute which will be true if it came from an user (e.g wasn’t programmatically created).cordova-plugin-media would be a solution to that since it just uses the native APIs to play audio, thus doesn't have such limitations.
To your refactoring problem, I would probably suggest implementing your own interface that hopefully can conform to your existing API usage to minimize refactoring and your own audio implementation can just use the cordova apis behind the scenes. This also has an added benefit of decoupling a particular implementation to your app which makes it easy to reuse your code / change audio implementation easily.
Wed, 21 Jul 2021 18:50:43 GMT
@dkirschner43 says
thank you @norman137
Wed, 21 Jul 2021 11:20:49 GMT
@norman137 says
The only other way is to google to see if you can find any other library that is maintained 🤷♂️ but I assumed you specifically wanted
phonegap-plugin-barcodescanner
-- and looking at it‘s network chart is the best way to discover forks that has had commits passed phonegap’s version.