Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Cannot read property of 'setAttribute' with cordova.js

$
0
0
Hello everyone, this is my first time posting so please bare with me.

The background and setup of the issue:
I was able to compile my test Twine 2 game using both Harlowe and Sugarcube and create an Android app using Phonegap, with no issues. The game mechanics and everything worked fine.

The issue:
when i implemented google admob ads, i started getting the error message which basically says "something is a mess with the page code: Cannot read property of 'setAttribute' with cordova.js using both Harlowe and Sugarcube.

the exact error is:

Uncaught TypeError: Cannot read property 'setAttribute' of null. The error is stemming from the cordova.js script that Admob references. The odd thing is, if you click the error ok button, the error goes away, the game loads, and the ads are displayed without a problem.

Is there a workaround with this? Or at the minimum a way of disabling the Twine error that comes up? everything seems to be working correctly, except for the error.

Any thoughts? Thanks in advance everyone.

Viewing all articles
Browse latest Browse all 1844

Trending Articles