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

Versions mismatch do not allow installation of 2.1.0-beta.2 from your docs #95

Closed
rivaros opened this issue Feb 20, 2023 · 20 comments
Closed

Comments

@rivaros
Copy link

rivaros commented Feb 20, 2023

Podfile:

pod 'CustomerIO/MessagingPushFCM', '~> 2.1.0-beta.2'
pod 'FirebaseCore', :modular_headers => true  
pod 'FirebaseMessaging', :modular_headers => true  
pod 'GoogleUtilities', :modular_headers => true  

package.json

    "customerio-reactnative": "^2.0.1",

Result of pod install:

[!] CocoaPods could not find compatible versions for pod "CustomerIOTracking":
  In snapshot (Podfile.lock):
    CustomerIOTracking (= 2.0.4, ~> 2.0.0)

  In Podfile:
    CustomerIO/MessagingPushFCM (~> 2.1.0-beta.2) was resolved to 2.1.0-beta.2, which depends on
      CustomerIOMessagingPushFCM (= 2.1.0-beta.2) was resolved to 2.1.0-beta.2, which depends on
        CustomerIOMessagingPush (= 2.1.0-beta.2) was resolved to 2.1.0-beta.2, which depends on
          CustomerIOTracking (= 2.1.0-beta.2)

    customerio-reactnative (from `../node_modules/customerio-reactnative`) was resolved to 2.0.1, which depends on
      CustomerIOTracking (~> 2.0.0)


You have either:
 * changed the constraints of dependency `CustomerIOTracking` inside your development pod `customerio-reactnative`.
   You should run `pod update CustomerIOTracking` to apply changes you've made.
@ami-aman
Copy link
Collaborator

Hi @rivaros

Sorry that you are facing this issue. Use pod install --repo-update command to update pods.

Let me know if this works for you.

@ami-aman ami-aman reopened this Feb 20, 2023
@rivaros
Copy link
Author

rivaros commented Feb 20, 2023

No, it does not.

@rivaros
Copy link
Author

rivaros commented Feb 20, 2023

also pod update CustomerIOTracking

causes:

[!] CocoaPods could not find compatible versions for pod "CustomerIOTracking":
  In Podfile:
    CustomerIO/MessagingPushFCM (~> 2.1.0-beta.2) was resolved to 2.1.0-beta.2, which depends on
      CustomerIOMessagingPushFCM (= 2.1.0-beta.2) was resolved to 2.1.0-beta.2, which depends on
        CustomerIOMessagingPush (= 2.1.0-beta.2) was resolved to 2.1.0-beta.2, which depends on
          CustomerIOTracking (= 2.1.0-beta.2)

    customerio-reactnative (from `../node_modules/customerio-reactnative`) was resolved to 2.0.1, which depends on
      CustomerIOTracking (~> 2.0.0)

@rivaros
Copy link
Author

rivaros commented Feb 20, 2023

customerio-reactnative version 2.0.1 (latest released) depends on

  s.dependency "CustomerIOTracking", '~> 2.0.0'
  s.dependency "CustomerIOMessagingInApp", '~> 2.0.0'

but it does not inlcude beta versions

@ami-aman
Copy link
Collaborator

ami-aman commented Feb 20, 2023

Version 2.0.1 of customerio-reactnative depends on iOS SDK version 2.0.0. Since we are using ~ (optimistic operator) before the version, so on doing pod install --repo-update it will automatically pull down the latest version upto latest next major/minor/patch release.

@rivaros
Copy link
Author

rivaros commented Feb 20, 2023

@ami-aman this won't include beta versions, what you wanted to achieve can be done with this:

  s.dependency "CustomerIOTracking", '>= 2.0.0', '~> 2.1.0-beta'
  s.dependency "CustomerIOMessagingInApp", '>= 2.0.0', '~> 2.1.0-beta'

@rivaros rivaros changed the title Versions mismatch do not allow installation of 2.0.1-beta.2 from your docs Versions mismatch do not allow installation of 2.1.0-beta.2 from your docs Feb 20, 2023
@rivaros
Copy link
Author

rivaros commented Feb 20, 2023

so major issue is that ~> 2.0.0 will only allow versions up to 2.1 (not including it)
but even if you make it ~> 2.1.0 it would still not include 2.1.0-beta.x versions

@ami-aman
Copy link
Collaborator

Hi @rivaros
I am sorry that you are still facing the error.
I want to be sure that we both are on the same page, do you want to install 2.1.0-beta.x version ?

@rivaros
Copy link
Author

rivaros commented Feb 21, 2023

@ami-aman beta version was specified in your docs. can see you are updating them now.
pls update what is the latest correct version of

pod 'CustomerIO/MessagingPushFCM', '~> '

@ami-aman
Copy link
Collaborator

Thank you @rivaros for bringing this to our attention. We are updating our docs as we talk.

Again, apologies that you had to face the issue.

@ami-aman
Copy link
Collaborator

@rivaros The docs have been updated. Please feel free to let us know if you are still facing any issues.

@rivaros
Copy link
Author

rivaros commented Feb 21, 2023

@ami-aman thx for updating the docs!

One last minor thing:

Here https://www.customer.io/docs/sdk/react-native/push/#metrics-userNotifications

If you’re using objective C, the example above already contains the code required to handle push metrics—substituting AppDelegate for your push notification class.

Example Above leads to nowhere.

Still using Objective-C to handle notification am not able to track opened metric when app is closed. Searching more info on that.

@ami-aman
Copy link
Collaborator

Thank you @rivaros for your patience. I truly appreciate you bringing these points to our notice. We have fixed the link in our docs. Again, thank you for highlighting !

To the question you asked regarding not able to track open metrics when the app is closed. Our team could reproduce it on our end and would like to let you know that we have logged a ticket internally so that someone from our team can take a look at it. I apologise that you had to face this issue.

@Shahroz16
Copy link
Contributor

Closing this due to inactivity, please feel free to re-open if the issue still persists.

@Shahroz16 Shahroz16 reopened this Mar 1, 2023
@rivaros
Copy link
Author

rivaros commented Mar 7, 2023

Hi @ami-aman !

Do you have any issue/refrence about capturing metrics when app is closed?

About the minor link issue above - I think it's still wrong. It should point to a specific piece of Objective-C code:
Screen Shot 2023-03-07 at 2 59 04 PM

@rivaros
Copy link
Author

rivaros commented Mar 7, 2023

Your docs also contain empty pod version all over

pod 'CustomerIO/MessagingPushFCM', '~> '

this wont compile...

@ami-aman
Copy link
Collaborator

@rivaros
Apologies for late response.

Would you like to check our sample app as a point of reference for your first query ? Let us know if it helps.

About the minor link issue above - I think it's still wrong. It should point to a specific piece of Objective-C code.

I understand your concern; I'll notify our documentation team. Our team is in Mexico for our annual retreat, so there may be a delay in updating the links. Meanwhile, I'll go ahead and add a detail about a specific point to check, in the hopes that it clarifies things.

I sincerely appreciate your feedback; it greatly assists us in improving our documentation.

Your docs also contain empty pod version all over

I am so sorry for the confusion. Could you please point me in the right direction, as I don't see a missing version in the docs right now?

@ami-aman
Copy link
Collaborator

Closing this due to inactivity, please feel free to re-open if the issue still persists.

@Allanbcruz
Copy link

I'm using the respective versions:
In Package.json:
"react": "18.2.0",
"react-native": "0.71.7",
"customerio-reactnative": "^2.3.2".

In Podfile:

Captura de Tela 2023-04-26 às 14 46 16

and I'm having this problem when I try to run arch -arm64 pod install --repo-update.

Captura de Tela 2023-04-26 às 14 43 47

@Shahroz16
Copy link
Contributor

Hey @Allanbcruz

Thank you for reporting this issue to us. Sorry to hear that you are experiencing an issue with the SDK.

We have a issue currently going through testing to fix this problem that you are experiencing.

Until that bug fix gets shipped in a future version of the React Native SDK, a temporary workaround is to use this in your Podfile:

pod 'CustomerIO/MessagingPushFCM', '~> 2.1.0'
or 
pod 'CustomerIO/MessagingPushAPN', '~> 2.1.0'

whichever you use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants