Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ionic-native methods logging "INVALID options" #107

Open
beylmk opened this issue Aug 9, 2021 · 5 comments
Open

Ionic-native methods logging "INVALID options" #107

beylmk opened this issue Aug 9, 2021 · 5 comments
Assignees
Labels
bug Something isn't working Investigating triaged

Comments

@beylmk
Copy link
Contributor

beylmk commented Aug 9, 2021

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).

@beylmk beylmk added the bug Something isn't working label Aug 9, 2021
@stale
Copy link

stale bot commented Sep 8, 2021

This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Please reach out if you have additional information to help us investigate further!

@stale stale bot added the status: waiting-for-reply Issues that are waiting for a reply label Sep 8, 2021
@stale stale bot closed this as completed Sep 15, 2021
@codykerns codykerns reopened this Dec 16, 2021
@stale stale bot removed the status: waiting-for-reply Issues that are waiting for a reply label Dec 16, 2021
@ghost ghost added the status: needs-additional-info Issues that are missing steps from bug template label Dec 16, 2021
@RevenueCat RevenueCat deleted a comment Dec 16, 2021
@codykerns codykerns added Investigating and removed status: needs-additional-info Issues that are missing steps from bug template labels Dec 16, 2021
@arturomf
Copy link

arturomf commented Apr 20, 2022

I have the same issue... Besides showing these logs, methods like setEmail or setAttributes are not working...

@timeisgolden
Copy link

I have got the same issue.

@vegaro
Copy link
Contributor

vegaro commented Aug 29, 2022

What exactly is your issue @timeisgolden ? Do you mind opening an issue with more details (logs, versions you're using, etc)

Thanks!

@timeisgolden
Copy link

timeisgolden commented Aug 29, 2022

@vegaro Hello, thanks for your reply
I am getting an error in my ionic capacitor project.

the below code is to set the attributes.

const attributes: { [key: string]: string } = {
   $email: userInfo.email || '',
   $displayName: userInfo.firstname || '',
   $firebaseAppInstanceId: userInfo.id || '',
   adultType: userInfo.adultType || '',
   childType: userInfo.childType && userInfo.childType.length ? userInfo.childType.toString() : ''
};
this.purchases.setAttributes(attributes);

the Error message is the following on Xcode.

PurchasesPlugin setAttributes INVALID ["options": [{
    "$displayName" = test;
    "$email" = "test@gmail.com";
    "$firebaseAppInstanceId" = K3Qnk3yQQ7qGeIAENofl;
}]]

I am using the following versions

"@awesome-cordova-plugins/core": "^5.44.0"
"@awesome-cordova-plugins/purchases": "^5.44.0"
"cordova-plugin-purchases": "^2.4.0"
"@capacitor/core": "4.0.1"
"@ionic/angular": "^6.1.11"

but that worked sometimes, I am not sure what I am missing.
I want to solve this issue.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Investigating triaged
Projects
None yet
Development

No branches or pull requests

6 participants