Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Component level script is not working on phoneGap APP

randeepr
Level 1
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
daniel_henriqu1
Correct answer by
Level 4
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
daniel_henriqu1
Correct answer by
Level 4
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