How People Test Ionic Native Plugin at Computer?


#1

i wondering how people test all the ionic native plugin in a browser? as i know browser will not run the ionic native plugin? But i have seen people from youtube they can run and debug the ionic native plugin in browser with a console page. Can anyone tell me how to these it within the browser with an console page.


#2

You run the app in an emulator/simulator. Then you “remote debug” it using your browser:

Follow these instructions here to debug the problem in Safari dev tools: https://ionic.zone/debug/remote-debug-your-app#ios
Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android

(Works the same with real devices by the way - just connect them via USB)


#3

Thanks you , now i know it
<3


#4

is there any command that i can directly run it ? or i have to manually put the apk into my android phone?


#5

https://ionicframework.com/docs/cli/cordova/run/