Component level script is not working on phoneGap APP | Community
Skip to main content
randeepr
April 27, 2017
Solved

Component level script is not working on phoneGap APP

  • April 27, 2017
  • 1 reply
  • 980 views

I have created a component in hybrid-reference-app and tried to include the JS through external and internal JS code. This is working on website and the Emulator (Chrome Ctrl+Shift+M) , But it's not working on APP.

HTML created path -> "/apps/hybrid-reference-app/components/social/social.html"

JS created path -> "/apps/hybrid-reference-app/components/socialshare/js/share.js"

Questions :

  •  Is there any restriction to use Javascript and Jquery in PhoneGap APP on AEM ?
  • How to include external JS files in Components ?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by daniel_henriqu1

Hi, Randeep.

Which version of AEM are you using? Is AEM6.0?

Are you be able to connect to your app using Chrome Dev Tools?
Which error message do you see at the JavaScript Console?

Does the generated .zip file (the one used to build your .apk/.ipa) contain that JavaScript file?

Regarding your questions: I'm not aware of any Update Handler capable of adding external JS files to the generated .zip file...

Regards,

Daniel.

1 reply

daniel_henriqu1
daniel_henriqu1Accepted solution
Level 4
April 27, 2017

Hi, Randeep.

Which version of AEM are you using? Is AEM6.0?

Are you be able to connect to your app using Chrome Dev Tools?
Which error message do you see at the JavaScript Console?

Does the generated .zip file (the one used to build your .apk/.ipa) contain that JavaScript file?

Regarding your questions: I'm not aware of any Update Handler capable of adding external JS files to the generated .zip file...

Regards,

Daniel.