How to find device os and version in ionic

后端 未结 4 437
半阙折子戏
半阙折子戏 2021-01-24 09:27

I have worked on few tutorials and at last found something regarding this in ionic framework.....

They gave some codes that use ionic native and i did the same by embedd

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-24 09:47

    I used cordova-plugin-device to fetch uuid number and device model name. It fetches all possible information about the device. I believe, It will also serve your purpose. Inside onDeviceReady() function, you just assign the values to your convenient variables, like: var deviceOS = device.uuid; var deviceVersion = device.version; Hope It helps. Please let me know if it works. :)

提交回复
热议问题