facebook

cordova plugin conflict: CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #340740 Reply

    upasana
    Member

    I 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:2

    Is 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?

    #340742 Reply

    Hi 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.

    #340749 Reply

    Hi 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.

    #340750 Reply

    upasana
    Member

    Hi 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

    #340751 Reply

    upasana
    Member

    Let me know the best way to add the clipboard copy functionality without conflicts. Thanks

    #340753 Reply

    Hi 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

    #341282 Reply

    upasana
    Member

    Hi

    Thanks. I extracted the files from the apk and things were working fine.

    Regards

    Upasana

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: cordova plugin conflict: CLOSED

You must be logged in to post in the forum log in