on 06-01-2013 9:33 PM
Dear Forum Members,
I want to make use of Phonegap APIs in my HWC application. I went through the infocenter and forums;however,I am unable to successfully do the HWC and Phonegap integration.
Can anyone be kind enough to educate the end-to-end process (HWC sourcecode compilation with phonegap APIs) for any of the native API ?
What are the steps involved in achieving this integration ? Any documentation with snapshots would be really useful.
In infocenter, it mentions of these steps:
Regards,
Suraj
Hi,
You can check following blog,
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suraj,
You can check for android : http://scn.sap.com/community/mobile/blog/2013/06/04/building-phonegap-native-plugin-for-hwc-containe...
Regards
It can be helpfull for you - http://scn.sap.com/docs/DOC-40436
also you can check http://scn.sap.com/docs/DOC-404355
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Denysyuk,
Thanks for the links.
However, I have proceeded with barcode scanning and got stuck at one place. Can you please check this http://scn.sap.com/thread/3372820 and would like to hear your comments.
Thanks for your help.
- Suraj
It can be helpfull for you - http://scn.sap.com/docs/DOC-40436
also you can check http://scn.sap.com/docs/DOC-404355
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The following sample may be helpful.
PhoneGap and Hybrid Web Container Customization Sample for 2.1 ESD #3 https://cw.sdn.sap.com/cw/docs/DOC-149428
Note that the phonegap is already integrated into the Hybrid Web Container so there is no need to build or compile anything to use one of the standard phonegap api's.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
Thank you very much for your reply.I will try the code sample.
However, I learnt that for the Phonegap APIs not supported by HWC, then we should compile the HWC source code with phonegap plugins.
Is my understanding correct ? Or HWC supports all the phonegap APIs ( for example: Barcode scanner).
Regards,
Suraj
The API's supported by phonegap are documented on the phonegap website.
http://docs.phonegap.com/en/2.0.0/index.html
Perhaps I missed it but I don't believe there is an api for a bar code scanner so you would need to write a plugin to phonegap to provide this.
Hi Daniel,
Thank you very much for your reply. I am struggling to implment the desired plugin to HWC container.
I am unable to get right contents to perform this procedure. All I got to know is (a) Compile the HWC container code with plugin (b) call the method in custom.js .
However, I am unable to perform this. Would you be kind enough to share any good information that anyone has already performed this ? I can refer to it.
- Suraj
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.