Open FlawaCLV opened 5 years ago
@roblav96 please merge #61
Does anyone here has tried to make it work? when I changed the code in lib/postinstall.js:22, it still didn't work and output the same error.
tried removing and adding the android platform but still didn't work.
Hi guys, not fully relevant to this topic but did you make any updates for NS 7 and make it work there?
Thanks!
go to hooks/after-prepare/nativescript-onesignal-gradle.js
and modify line 5 to : var platform = (hookArgs.platform || (hookArgs.prepareData && hookArgs.prepareData.platform)).toLowerCase();
With NativeScript version 6.0 this error can be fixed with
var platform = (hookArgs.platform || (hookArgs.prepareData && hookArgs.prepareData.platform)).toLowerCase();
line 5 of nativescript-onesignal-gradle.jsStackOverflow solution here: https://stackoverflow.com/questions/57853453/nativescript-typeerror-cannot-read-property-tolowercase-of-undefined-afte