- This topic has 6 replies, 3 voices, and was last updated 11 years, 10 months ago by
upasana.
-
AuthorPosts
-
upasanaMemberI am using a cordova plugin for clipboard copy.
For the android build I had to include the java file , and clipboardmanager.js and cordova.js.
The clipboard function works fine, but the existing phoneui functionalities are having issues due to the cordova.js file inclusion. Like for mail compose function I am getting the following error.TypeError {} phoneui.js:1071
phoneui.composeEmailFromPage phoneui.js:1071
m1Design.actions.action3 initScreen.js:254
runUserCode phoneui.js:1429
doClick phoneui.js:2108
(anonymous function) phoneui.js:2232
v.event.dispatch jquery-1.8.3.min.js:2
o.handle.u jquery-1.8.3.min.js:2Is there a prebuilt functionality in phoneui that I can use for clipboard copy and resolve the issue.
Or in case, there is no alternative and I have to use cordova plugin externally from eclipse, how can I avoid conflict issues of existing functionality?
support-octavioMemberHi upasana,
Thanks for sharing the error info. I’m kicking this over to one of our cordova developers to assist with. But I suspect that your inputs are bonking the api required by mobione’s phoneui.js lib. Let’s see what the dev team follows up with tomorrow when they are online.
support-alekseyMemberHi upasana,
Where did you include the java file?
MobiOne doesn’t support on demand addition of custom plugins yet. So you can’t just put java file into www folder and compile it into native code, sorry.
upasanaMemberHi aleksey
I used the html generated by mobione in the assets/www folder in eclipse like any phonegap project and used the plugin over there.
Regards
Upasana
upasanaMemberLet me know the best way to add the clipboard copy functionality without conflicts. Thanks
support-alekseyMemberHi upasana,
you have probably took files generated for web app. MobiOne AppCenter adds some files to that fileset and perform few changes so for that purpose you can take ‘www’ folder from apk file built with MobiOne.
Yet another thing – some phoneui functionality require native MobiOne plugins (such as video playing, pdf viewer and some other) you will not be able to access that features in such mode.
Cheers
upasanaMemberHi
Thanks. I extracted the files from the apk and things were working fine.
Regards
Upasana
-
AuthorPosts