andreszs/cordova-plugin-sms-receive

error: reference to put is ambiguous

pmartelletti opened this issue ยท 2 comments

Seems like Java 8 is not liking passing null to JSON.put() directly. If you replace SMSReceive.java:105 with:

json.put(keys[j], JSONObject.NULL);

that should be fixed. ๐Ÿ˜„

Thanks, your fix has been implemented.

I'd recommend migrating to the new cordova-plugin-sms-retriever based on the SMS Retriever API for reading verification SMS without the need of additional SMS permissions.