[InAppBrowserEvents] ParseOptions bug

[InAppBrowserEvents] ParseOptions bug

  
Forge Component
(0)
Published on 2017-03-10 by Rui Barbosa
0 votes
Published on 2017-03-10 by Rui Barbosa

Hi,

We are using the InAppBrowserEvents with the IdP Mobile plugin but we found out the Options are not parsed correctly.

For example the clearcache and clearsessioncache options have a default value in the structure. The SerializeJson doesn't serialize default values so those options are never send when the default value is chosen.

That wouldn't be a problem if the clearcache and clearsessioncache had default values in the Cordova plugin but they don't so the cache is never cleared.

One option would be to set the serializeJson to also serialize defaults but then all options would need defaults, otherwise the options string will contain errors.

Another option is to remove the defaults.

Regards