Voting: 
Vote up!
0 Votes
1 Replies
Unanswered

How to differentiate Native and Mobile web /Desktop Web?

Question asked by Manikandan Venkatesan on Feb 20, 2017 07:40 EST

Hi, I need to figure out the channel which i am making a service call. i am having two different scenarios , for native channels i need to use kony sync calls (local table) for mobile web/ desktop web i need to use kony.net.invokeServiceAsync. Servce calls.How can i achieve this?  Thanks in advance

Vote up!
0 votes
Vote down!

Hi Manikandan,

Please find the attached sample for reference to differentiate mobile, tablet and desktop web channels. We have setChannel functions for respective category which are added in the preappinit of the application properties of respective category.

Along with the above you can still use DeviceInfo API to get the details. Please refer below guide for more information on this.

http://docs.kony.com/konylibrary/visualizer/viz_api_dev_guide/Default.htm#kony.os_objects_deviceinfo.htm%3FTocPath%3DReferences%7CDeviceInfo%2520Object%7C_____0

Hope above information helps.

 

Thanks,
Madhuri C.
Customer Success Engineering.

Replied by: Feb 21, 2017 00:35 EST
Gold