Expand my Community achievements bar.

SOLVED

Component level script is not working on phoneGap APP

Avatar

Level 1

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 ?
1 Accepted Solution

Avatar

Correct answer by
Level 4

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

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.