Skip to content

Ionic-native methods logging "INVALID options"  #107

@beylmk

Description

@beylmk

Apps running the ionic-native version of the SDK with Capacitor are receiving error logs on some Purchases method calls (see below). I've confirmed in a sample app that this occurs at least back to our 1.3.2 SDK, so my guess is some dependencies aren't lining up.

I tested with setSubscriberAttributes and setDebugLogsEnabled, and the requests still goes through to our native SDKs. Just unsure why we are getting these confusing logs.

  1. Environment
    1. Platform: iOS (haven't confirmed on Android)
    2. SDK version: 2.3.0
  2. Debug logs
    For example:

To Native Cordova -> PurchasesPlugin setDebugLogsEnabled INVALID ["options": [1]]
To Native Cordova -> PurchasesPlugin setAttributes INVALID ["options": [{
hey = hi;
}]]

  1. Steps to reproduce, with a description of expected vs. actual behavior

Launch app, configure Purchases, and make calls to certain methods (seeing with at least setDebugLogs and setAttributes).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions