Giter Club home page Giter Club logo

exponea-react-native-sdk's People

Contributors

adam1929 avatar igor-liska avatar michaela-dev avatar roland-misica avatar wassil avatar xcibik00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

exponea-react-native-sdk's Issues

Android create archive build is failing with latest version 1.5.0

After upgrading to latest version of exponea-react-native-sdk 1.5.0. It was working just fine with 1.4.0

ERROR:/Users/runner/work/1/s/node_modules/react-native-exponea-sdk/android/build/.transforms/78361bd1a6def157be060e348071c1c8/transformed/release/com/exponea/style/AppInboxListItemStyle.dex: D8: Type com.exponea.style.AppInboxListItemStyle is defined multiple times: /Users/runner/work/1/s/node_modules/react-native-exponea-sdk/android/build/.transforms/78361bd1a6def157be060e348071c1c8/transformed/release/com/exponea/style/AppInboxListItemStyle.dex, /Users/runner/work/1/s/android/app/build/intermediates/external_libs_dex/qaRelease/mergeExtDexQaRelease/classes.dex com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Type com.exponea.style.AppInboxListItemStyle is defined multiple times: /Users/runner/work/1/s/node_modules/react-native-exponea-sdk/android/build/.transforms/78361bd1a6def157be060e348071c1c8/transformed/release/com/exponea/style/AppInboxListItemStyle.dex, /Users/runner/work/1/s/android/app/build/intermediates/external_libs_dex/qaRelease/mergeExtDexQaRelease/classes.dex at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:151) at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:138) at com.android.build.gradle.internal.tasks.DexMergingWorkAction.merge(DexMergingTask.kt:859) at com.android.build.gradle.internal.tasks.DexMergingWorkAction.run(DexMergingTask.kt:805) at com.android.build.gradle.internal.profile.ProfileAwareWorkAction.execute(ProfileAwareWorkAction.kt:74) at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66) at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62) at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44) at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204) at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66) at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157) at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59) at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73) at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41) at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:59) at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:205) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:187) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.access$700(DefaultConditionalExecutionQueue.java:120) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner$1.run(DefaultConditionalExecutionQueue.java:162) at org.gradle.internal.Factories$1.create(Factories.java:31) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:249) at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:109) at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:114) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:157) at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:126) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: /Users/runner/work/1/s/node_modules/react-native-exponea-sdk/android/build/.transforms/78361bd1a6def157be060e348071c1c8/transformed/release/com/exponea/style/AppInboxListItemStyle.dex at Version.fakeStackEntry(Version_3.3.83.java:0) at com.android.tools.r8.internal.Hj.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:75) at com.android.tools.r8.internal.Hj.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:28) at com.android.tools.r8.internal.Hj.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:27) at com.android.tools.r8.internal.Hj.b(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:2) at com.android.tools.r8.D8.run(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:11) at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:136) ... 38 more Caused by: com.android.tools.r8.internal.f: Type com.exponea.style.AppInboxListItemStyle is defined multiple times: /Users/runner/work/1/s/node_modules/react-native-exponea-sdk/android/build/.transforms/78361bd1a6def157be060e348071c1c8/transformed/release/com/exponea/style/AppInboxListItemStyle.dex, /Users/runner/work/1/s/android/app/build/intermediates/external_libs_dex/qaRelease/mergeExtDexQaRelease/classes.dex at com.android.tools.r8.internal.LT.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:14) at com.android.tools.r8.internal.LT.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:22) at com.android.tools.r8.internal.JN.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:36) at com.android.tools.r8.internal.JN.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:10) at java.base/java.util.concurrent.ConcurrentHashMap.merge(ConcurrentHashMap.java:2048) at com.android.tools.r8.internal.JN.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:6) at com.android.tools.r8.graph.B2$a.e(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:7) at com.android.tools.r8.dex.b.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:101) at com.android.tools.r8.dex.b.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:25) at com.android.tools.r8.dex.b.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:24) at com.android.tools.r8.D8.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:25) at com.android.tools.r8.D8.d(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:606) at com.android.tools.r8.D8.b(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:1) at com.android.tools.r8.internal.Hj.a(R8_3.3.83_3e328a3bbd0c840823c96123eb0f6192f0adf17b30ae46f695be39af0bc3505e:24) ... 41 more

`1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDexQaRelease'.

A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate
There was a failure while executing work items
> A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Type com.exponea.style.AppInboxListItemStyle is defined multiple times: /Users/runner/work/1/s/node_modules/react-native-exponea-sdk/android/build/.transforms/78361bd1a6def157be060e348071c1c8/transformed/release/com/exponea/style/AppInboxListItemStyle.dex, /Users/runner/work/1/s/android/app/build/intermediates/external_libs_dex/qaRelease/mergeExtDexQaRelease/classes.dex

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.`

upgrade from 0.5.0 to 1.0.0 is breaking for Android

I am using M1 machine and iOS build works fine but for Android build it keeps failing.

android/build.gradle

       buildToolsVersion = "30.0.2"
        minSdkVersion = 21
        compileSdkVersion = 30
        targetSdkVersion = 30
        ndkVersion = "21.4.7075529"
        kotlinVersion = '1.6.0'

Error logs

> Task :app:checkDebugAarMetadata FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
143 actionable tasks: 9 executed, 134 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > The minCompileSdk (31) specified in a
     dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
     is greater than this module's compileSdkVersion (android-30).
     Dependency: androidx.work:work-runtime-ktx:2.7.1.
     AAR metadata file: /Users/adeem/.gradle/caches/transforms-3/90fad26cc6b303298c4f0660035e44d4/transformed/work-runtime-ktx-2.7.1/META-INF/com/android/build/gradle/aar-metadata.properties.

Versions below react-native 0.70 not being supported anymore?

Hey,

In the newest version of the SDK, there is a peer dependency lock for react@^18.1.0

Because of this, we can't install the SDK on [email protected] which uses [email protected]. [email protected] was introduced in [email protected], so does it mean that anything below [email protected] is not supported by the SDK anymore?

npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.1.0" from [email protected]

Thanks!

Exponea.setPushOpenedListener Callback not called for Push Notification based launches

Version "react-native-exponea-sdk": "0.3.0",

Problem:-
When you launch the app by clicking on the notification sent from the exponea backend, it doesn't call the callback registered using Exponea.setPushOpenedListener.

Please note that once the app has been launched, and then if we again send a Push Notification, and click on it, then this call back gets called fine. Only the first App Launch part doesn't work.

Additional Note:-
I tried to debug the SDK, and I realised that in the file:- react-native-exponea-sdk/ios/Exponea+PushNotifications.swift there is a function pushNotificationOpened, which should ideally get called when the App is opened using the Push Notification, and because this is not called, the Push is not sent to the React Native side when the listener is registered.

func pushNotificationOpened(
        with action: ExponeaNotificationActionType,
        value: String?,
        extraData: [AnyHashable: Any]?
    )

Please have a look and let me know. Also, I tried to upgrade to 0.4.0, but that fails as well, and can't build. I will post that issue in another Issue.

iOS App Build fails on version 0.4.0

Hello,

I just tried to upgrade to 0.4.0, and I see the following error when trying to build the app.
Some duplicate file error.

CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'react-native-exponea-sdk' from project 'Pods')
cd /Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name react_native_exponea_sdk -Onone -enable-batch-mode -enforce-exclusivity=checked @/Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/Objects-normal/x86_64/react-native-exponea-sdk.SwiftFileList -DDEBUG -D COCOAPODS -Xcc -fmodule-map-file=/Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Products/Debug-iphonesimulator/ExponeaSDK/ExponeaSDK.modulemap -Xcc -fmodule-map-file=/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/yoga/Yoga.modulemap -import-underlying-module -Xcc -fmodule-map-file=/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/react_native_exponea_sdk/react-native-exponea-sdk.modulemap -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk -target x86_64-apple-ios10.3-simulator -g -module-cache-path /Users/psahu/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Index/DataStore -swift-version 5 -I /Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Products/Debug-iphonesimulator/react-native-exponea-sdk -I /Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Products/Debug-iphonesimulator/ExponeaSDK -F /Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Products/Debug-iphonesimulator/react-native-exponea-sdk -c -j12 -output-file-map /Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/Objects-normal/x86_64/react-native-exponea-sdk-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/Objects-normal/x86_64/react_native_exponea_sdk.swiftmodule -Xcc -I/Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/react-native-exponea-sdk-generated-files.hmap -Xcc -I/Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/react-native-exponea-sdk-own-target-headers.hmap -Xcc -I/Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/react-native-exponea-sdk-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/react-native-exponea-sdk-project-headers.hmap -Xcc -I/Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Products/Debug-iphonesimulator/react-native-exponea-sdk/include -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Private -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Private/react-native-exponea-sdk -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/DoubleConversion -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/FBLazyVector -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/FBReactNativeSpec -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/RCTRequired -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/RCTTypeSafety -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/React-Core -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/React-RCTText -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/React-callinvoker -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/React-cxxreact -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/React-jsi -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/React-jsiexecutor -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/React-jsinspector -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/ReactCommon -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/Yoga -Xcc -I/Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods/Headers/Public/glog -Xcc -I/Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/DerivedSources-normal/x86_64 -Xcc -I/Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/DerivedSources/x86_64 -Xcc -I/Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -emit-objc-header -emit-objc-header-path /Users/psahu/Library/Developer/Xcode/DerivedData/Raisin-eurzduqfjbrjxpfuyagtktzbcdow/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-exponea-sdk.build/Objects-normal/x86_64/react_native_exponea_sdk-Swift.h -working-directory /Users/psahu/Documents/Workspace/raisin-mobile/ios/Pods

:0: error: filename "Exponea.swift" used twice: '/Users/psahu/Documents/Workspace/raisin-mobile/node_modules/react-native-exponea-sdk/ios/Exponea.swift' and '/Users/psahu/Documents/Workspace/raisin-mobile/node_modules/react-native-exponea-sdk/ios/Pods/ExponeaSDK/ExponeaSDK/ExponeaSDK-Shared/Exponea.swift'
:0: note: filenames are used to distinguish private declarations with the same name
:0: error: filename "ExponeaError.swift" used twice: '/Users/psahu/Documents/Workspace/raisin-mobile/node_modules/react-native-exponea-sdk/ios/ExponeaError.swift' and '/Users/psahu/Documents/Workspace/raisin-mobile/node_modules/react-native-exponea-sdk/ios/Pods/ExponeaSDK/ExponeaSDK/ExponeaSDK-Shared/ExponeaError.swift'
:0: note: filenames are used to distinguish private declarations with the same name
Command CompileSwiftSources failed with a nonzero exit code

Intialisation issues with @react-native-firebase dependencies on Android

We noticed that including exponea-react-native-sdk caused initialisation issues when we already had react-native firebase dependencies setup.

error screen

We eventually came to a fix/workaround of forcing an initialise for DEFAULT in the MainApplication#onCreate:

io.invertase.firebase.app.ReactNativeFirebaseApp.initializeSecondaryApp("[DEFAULT]", this);

This is only an issue on Android, we've not came across any issues on iOS.

Replication repo can be found here: https://github.com/Eluinhost/ExponeaWithFirebaseExample This is a fresh init react-native app with firebase and exponea setup, instructions are in the README.md

Publish tracked event doesn't appear on the customer profile

Hi,

I identified users through

Exponea.identifyCustomer(
     { email_id: email.toLowerCase() },
     {}
 ).

Then published a view_item event.

Exponea.trackEvent("view_item", {
    product_id: product_id,
    variant_id: variant_id,
    brand: product.vendor,
    title: product.name,
    price: price,
  })

But can't see the view_item event that I published on the customer profile.

Exponea.isConfigured() in android always returns true after first launch

base on documentation we have a code as below

const configureExponea = async (
  configuration: Configuration
): Promise<boolean> => {
  try {
    const isConfigured = await Exponea.isConfigured();
    console.log({ isConfigured });
    if (isConfigured) {
      return true;
    }
    await Exponea.configure(configuration);
    return true;
  } catch (error) {
    console.error(error);
    return false;
  }
};

Only in Android we have a problem:

In first launch of the app isConfigured return false which is correct and we configure the exponea. but when we kill the app completely and run it again, isConfigured will always return true which is different behaviour from iOS. is this expected behaviour?

Xcode Version 12.5 give error message for libExponeaSDK.a

I upgrade to latest Xcode 12.5 and since then I am not able to compile the project. Here is the error message

Undefined symbols for architecture x86_64:
  "Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int)", referenced from:
      generic specialization <serialized, Swift._ArrayBuffer<Swift.Int8>> of Swift._copyCollectionToContiguousArray<A where A: Swift.Collection>(A) -> Swift.ContiguousArray<A.Element> in libExponeaSDK.a(Reachability.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am not able to submit the app, any solution?

No such module 'ExponeaSDK_Notifications'

I m keep getting this error on Xcode. Any idea? We do have the Empty swift file and bridging header.


❌  (ios/PushContentExtension/NotificationViewController.swift:12:8)

  10 | import UserNotifications
  11 | import UserNotificationsUI
> 12 | import ExponeaSDK_Notifications
     |        ^ no such module 'ExponeaSDK_Notifications'
  13 | 
  14 | class NotificationViewController: UIViewController, UNNotificationContentExtension {
  15 | 


› 1 error(s), and 1 warning(s)

Failed to build iOS project. "xcodebuild" exited with error code 65.

Note: If we change from import ExponeaSDK_Notifications to import ExponeaSDKNotifications it still didnt worked.
Note2: We are using latest sdk 1.0.0

image

Cannot upgrade to 1.5.1 due to react peer dependency downgrade

Please, get your grip together with your peer dependencies! We cannot upgrade to 1.5.1 due to massive downgrade of react as peer dependency from ^18.2.0 -> ^17.0.2 in 19818f9.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: lykoapp@24
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.2" from [email protected]
npm ERR! node_modules/react-native-exponea-sdk
npm ERR!   react-native-exponea-sdk@"^1.5.1" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /home/frenic/.npm/_logs/2023-06-13T08_18_02_401Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/frenic/.npm/_logs/2023-06-13T08_18_02_401Z-debug-0.log

iOS crash with EXC_BREAKPOINT (SIGTRAP)

We are facing crashes on production on IOS.
The issue appears on App start

Screenshot 2023-05-31 at 15 53 19 Screenshot 2023-05-31 at 15 55 32

According to the logs, a crash occurs in the TrackingManager file when the notification manager is called, that the application has become active.

Additional info:

"react-native-exponea-sdk": "1.4.0"
"react-native": "0.70.6"

Upgrading to 1.1.1 iOS app crash

I am not able to run the app because of upgrading to 1.1.1

error: Error: While trying to resolve module `react-native-exponea-sdk` from file `/src/core/app/hooks/useExponea/index.ts`, the package `/node_modules/react-native-exponea-sdk/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/node_modules/react-native-exponea-sdk/lib/index.js`. Indeed, none of these files exist:

  * /node_modules/react-native-exponea-sdk/lib/index.js(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.svg|.native.svg|.svg)
  * /node_modules/react-native-exponea-sdk/lib/index.js/index(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.svg|.native.svg|.svg)
    at DependencyGraph.resolveDependency (/node_modules/metro/src/node-haste/DependencyGraph.js:311:17)
    at Object.resolve (/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 3)
    at async processModule (/node_modules/metro/src/DeltaBundler/traverseDependencies.js:198:5)

can you help me out?

crash on android build v1.0.0

hi, could you please help with exponea sdk? I get error or maybe crash when I'm trying to run in on android
it's error for no reason and when I remove this lib my app back to normal again

Peer dependency resolve error

I have [email protected] installed and receive the following error when installing. Everything works fine locally with npm install --force. A revision on your peer dependency should be relevant given that [email protected] was released recently. Thank you!

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.67.3" from the root project
npm ERR!   peer react-native@"^0.0.0-0 || 0.60 - 0.67 || 1000.0.0" from @react-native-async-storage/[email protected]
npm ERR!   node_modules/@react-native-async-storage/async-storage
npm ERR!     @react-native-async-storage/async-storage@"^1.16.1" from the root project
npm ERR!     @react-native-async-storage/async-storage@"^1.13.4" from [email protected]
npm ERR!     node_modules/raygun4reactnative
npm ERR!       raygun4reactnative@"^1.2.2" from the root project
npm ERR!   31 more (@react-native-community/cli, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"<=0.67.0" from [email protected]
npm ERR! node_modules/react-native-exponea-sdk
npm ERR!   react-native-exponea-sdk@"^1.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react-native
npm ERR!   peer react-native@"<=0.67.0" from [email protected]
npm ERR!   node_modules/react-native-exponea-sdk
npm ERR!     react-native-exponea-sdk@"^1.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Use ~0.71.0 as peer dependency

What is the reason you're using <= for react-native as peer dependency? <=0.71.8 prevents us from upgrading to 0.71.9 and 0.71.10. Is it possible to use ~0.71.0 as peer dependency for react-native instead so we're allowed to upgrade patch upgrades, that are usually stability fixes.

Support Xcode 14, iOS 16

IDE: Xcode 14
OS: iOS 16
Library version: 1.1.0

We have a problem when we are trying to compile the app on iOS. The problem is related to your exponea-ios-sdk dependency. That library had a problem with WKPreferences > isElementFullscreenEnabled property which is available since iOS 15.4 and they had set iOS 15.0 (here you can see the issue & here you can see the code)

They fixed the problem into the latest release 2.12.3 but your latest release 1.1.0 has as dependency 2.12.1 here you can see your dependency

So, can you please update your exponea-ios-sdk dependency?

image (3)

Not able to build Android app with react-native-exponea-sdk veriosn 15

here is the error, that I am getting after upgrading Exponea SDK version ( this issue is related to Android only)

I have tried with react native version 0.70.6 and 0.71.8, but the same issue I am facing. (node verion: 18.7.0)

This issue is on priority, waiting for the quick reply to fix this issue

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDevelopmentDebug -PreactNativeDevServerPort=8081
node:internal/fs/utils:348
throw err;
^

Error: ENOENT: no such file or directory, lstat '/appPath/node_modules/react-native-exponea-sdk/src'
at Object.lstatSync (node:fs:1574:3)
at /appPath/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js:75:10
at Array.forEach ()
at Object. (/appPath/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js:74:10)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
errno: -2,
syscall: 'lstat',
code: 'ENOENT',
path: '/appPath/node_modules/react-native-exponea-sdk/src'
}

Can't run on Xcode 12.4 iOS 14.4 and Swift Version 5.3.2

Hi,
I installed "react-native-exponea-sdk": "^0.5.0"
on react-native: 0.61.5 project but when run on Xcode 12.4 I see some Swift Compiler Errors

  1. Cannot convert value of type 'T??' to specified type 'NSDictionary?' and Generic parameter 'T' could not be inferred - in parsePushNotificationTracking func in ConfigurationParser.swift
    if let iosDictionary: NSDictionary = try? dictionary.getOptionalSafely(property: "ios") { appGroup = try iosDictionary.getOptionalSafely(property: "appGroup") ?? appGroup }
    also here
    if let iosDictionary: NSDictionary = try? dictionary.getOptionalSafely(property: "ios") { requirePushAuthorization = try iosDictionary.getOptionalSafely(property: "requirePushAuthorization") ?? true }

  2. 'ExponeaAppDelegate' has different definitions in different modules; first difference is definition in module 'react_native_exponea_sdk' found super class with type 'UIResponder' - in ExponeaAppDelegate.h - fixed by adding libExponeaSDK.a in Link Binary manually

React-native info:

System:
OS: macOS 11.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 72.05 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.16.2 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.6953283
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
npmPackages:
@react-native-community/cli: ^3.0.4 => 3.2.1
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5

Getting null/undefined While importing exponea from sdk

While running in android I m getting the below error while importing

import Exponea from 'react-native-exponea-sdk'

ERROR TypeError: null is not an object (evaluating 'react_native_1.NativeModules.Exponea.configure')
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.

Update documentation for upgrading version from 0.x.x to 1.x.x

First of all thanks for this documentation. When I try to follow the steps, I started to get following error

app/MessageService.java:5: error: package com.google.firebase.messaging does not exist
import com.google.firebase.messaging.FirebaseMessagingService;  

So basically one step which needs to be added is, please add implementation 'com.google.firebase:firebase-messaging:15.0.2' in android/app/build.gradle dependencies

https://github.com/exponea/exponea-react-native-sdk/blob/develop/documentation/VERSION_UPDATE.md

Push notifications not playing default sound

I am facing an issue where push notifications successfully arrive to the user, but no default OS notification sound is played.
Notifications themselves work fine and the phone is not in silent mode. Is any additional setup needed, to make the default OS sound work?

error: module map file ExponeaSDK_Notifications.modulemap not found

I am using latest version of exponea-react-native-sdk and enabled Rich_Push notification. When I try to archive project to create a build for App Store. I am getting following error

<unknown>:0: error: module map file 'Xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/BuildProductsPath/Release-iphoneos/ExponeaSDK-Notifications/ExponeaSDK_Notifications.modulemap' not found <unknown>:0: error: module map file '/Intermediates.noindex/ArchiveIntermediates/BuildProductsPath/Release-iphoneos/ExponeaSDK-Notifications/ExponeaSDK_Notifications.modulemap' not found <unknown>:0: error: missing required module 'SwiftShims'

React native version 0.63.4
Xcode 12.4

My pod file has platform :ios, '11.0' when I downgrade iOS to 10.3, everything start working. What could be the reason?

Any idea?

cannot find symbol import com.exponea.sdk.services.ExponeaPushReceiver on Android

I am trying to upgrade to react-native-exponea-sdk version 1.0.0 but i keep getting an error regarding Android 12. After upgrading my complikeSdk to support Android 12, i am now getting this new error:

error: cannot find symbol
import com.exponea.sdk.services.ExponeaPushReceiver;
^
symbol: class ExponeaPushReceiver
location: package com.exponea.sdk.services

error: cannot find symbol
Parcelable[] data = intent.getParcelableArrayExtra(ExponeaPushReceiver.EXTRA_DATA);
^
symbol: variable ExponeaPushReceiver
location: class MyReceiver

pod install shows weird logs on upgrading to 0.4.0

Hello,
I just raised another issue to highlight the fact that the iOS build fails with 0.4.0.

Other than that I see some extremely long logs when I do pod install after upgrading to 0.4.0 in my package.json

The logs looks like the below.. (only pasting first and last few lines, as it is super long)


Generating Pods project
Integrating client project
Pod installation complete! There are 97 dependencies from the Podfile and 108 total pods installed.

[!] [Xcodeproj] Generated duplicate UUIDs:

PBXBuildFile -- Pods.xcodeproj/targets/buildConfigurationList:buildConfigurations:baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,defaultConfigurationIsVisible:0,defaultConfigurationName:Release,displayName:ConfigurationList,isa:XCConfigurationList,,buildPhases:buildActionMask:2147483647,displayName:Headers,files:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Sources,files:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,isa:PBXSourcesBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Frameworks,files:,isa:PBXFrameworksBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Copy generated compatibility header,files:,inputFileListPaths:,inputPaths:|,|,|,isa:PBXShellScriptBuildPhase,name:Copy generated compatibility header,outputFileListPaths:,outputPaths:|,|,|,runOnlyForDeploymentPostprocessing:0,shellPath:/bin/sh,shellScript:COMPATIBILITY_HEADER_PATH="${BUILT_PRODUCTS_DIR}/Swift Compatibility Header/${PRODUCT_MODULE_NAME}-Swift.h"
MODULE_MAP_PATH="${BUILT_PRODUCTS_DIR}/${PRODUCT_MODULE_NAME}.modulemap"

ditto "${DERIVED_SOURCES_DIR}/${PRODUCT_MODULE_NAME}-Swift.h" "${COMPATIBILITY_HEADER_PATH}"
ditto "${PODS_ROOT}/Headers/Public/react_native_exponea_sdk/react-native-exponea-sdk.modulemap" "${MODULE_MAP_PATH}"
ditto "${PODS_ROOT}/Headers/Public/react_native_exponea_sdk/react-native-exponea-sdk-umbrella.h" "${BUILT_PRODUCTS_DIR}"
printf "\n\nmodule ${PRODUCT_MODULE_NAME}.Swift {\n header "${COMPATIBILITY_HEADER_PATH}"\n requires objc\n}\n" >> "${MODULE_MAP_PATH}"
,,buildRules:,dependencies:displayName:React,isa:PBXTargetDependency,targetProxy:containerPortal:|,displayName:|,isa:|,proxyType:|,remoteGlobalIDString:|,remoteInfo:|,,,displayName:ExponeaSDK,isa:PBXTargetDependency,targetProxy:containerPortal:|,displayName:|,isa:|,proxyType:|,remoteGlobalIDString:|,remoteInfo:|,,,displayName:react-native-exponea-sdk,isa:PBXNativeTarget,name:react-native-exponea-sdk,packageProductDependencies:,productName:react-native-exponea-sdk,productReference:displayName:libreact-native-exponea-sdk.a,explicitFileType:archive.ar,includeInIndex:0,isa:PBXFileReference,name:libreact-native-exponea-sdk.a,path:libreact-native-exponea-sdk.a,sourceTree:BUILT_PRODUCTS_DIR,,productType:com.apple.product-type.library.static,/buildPhases/buildActionMask:2147483647,displayName:Sources,files:displayName:Exponea.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:ExponeaAppDelegate.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:objc_tryCatch.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:CwlCatchException.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:CwlMachBadInstructionHandler.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:mach_excServer.c,fileRef:displayName:|,includeInIndex:|,isa:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:DSL.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:NMBExceptionCapture.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:NMBStringify.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:XCTestObservationCenter+Register.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:QuickSpecBase.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:QuickConfiguration.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:QCKDSL.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:QuickSpec.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:XCTestSuite+QuickTestSuiteBuilder.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:DoubleConversion-dummy.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:ExponeaSDK-dummy.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:FBReactNativeSpec-dummy.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:Folly-dummy.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:glog-dummy.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:Nimble-dummy.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:Pods-Exponea-dummy.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,,displayName:Pods-Tests-dummy.m,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourc

-----to the end----

me:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:Uri.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:UTF8String.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:Utility.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:Varint.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:VirtualExecutor.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:commandlineflags.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:googleinit.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:mutex.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:config.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:config_for_unittests.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:demangle.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:logging.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:log_severity.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:raw_logging.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:stl_logging.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:vlog_is_on.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:googletest.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:mock-log.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:stacktrace.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:stacktrace_generic-inl.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:stacktrace_libunwind-inl.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:stacktrace_powerpc-inl.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:stacktrace_x86-inl.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:stacktrace_x86_64-inl.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:symbolize.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:utilities.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:CwlCatchException.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:CwlMachBadInstructionHandler.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:mach_excServer.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:CwlPreconditionTesting.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:Nimble.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:DSL.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:NMBExceptionCapture.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:NMBStringify.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:QuickSpecBase.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:QuickConfiguration.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:QCKDSL.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:Quick.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:QuickSpec.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:ExponeaSDK-umbrella.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:Nimble-umbrella.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:Pods-Exponea-umbrella.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:Pods-Tests-umbrella.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:Quick-umbrella.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:react-native-exponea-sdk-umbrella.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,/files/displayName:String.h,fileRef:displayName:String.h,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:sourcecode.c.h,path:String.h,sourceTree:,,isa:PBXBuildFile,settings:ATTRIBUTES:Project,,

InAppMessageManagerImpl: Preloading in-app messages failed. canceled due to java.lang.NoSuchMethodError

Hi,

Our app is crashing on Android with following issue;
ReactNative 0.64.2
Android 10
compileSdkVersion = 29
targetSdkVersion = 30

2021-11-30 12:46:41.958 4402-4561/? E/InAppMessageManagerImpl: Preloading in-app messages failed. canceled due to java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/fi.our.app.id-9EcctlflKLk0Oi6BfiHxOA==/base.apk!classes3.dex)
2021-11-30 12:46:41.963 4402-4561/? E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
    Process: fi.our.app.id, PID: 4402
    java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/fi.our.app.id-9EcctlflKLk0Oi6BfiHxOA==/base.apk!classes3.dex)
        at okhttp3.logging.HttpLoggingInterceptor$Logger$1.log(HttpLoggingInterceptor.java:114)
        at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:173)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
        at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
        at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:929)
2021-11-30 12:46:41.975 4402-4563/? E/InAppMessageManagerImpl: Preloading in-app messages failed. canceled due to java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/fi.our.app.id-9EcctlflKLk0Oi6BfiHxOA==/base.apk!classes3.dex)
2021-11-30 12:46:41.979 4402-4563/? E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
    Process: fi.our.app.id, PID: 4402
    java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/fi.our.app.id-9EcctlflKLk0Oi6BfiHxOA==/base.apk!classes3.dex)
        at okhttp3.logging.HttpLoggingInterceptor$Logger$1.log(HttpLoggingInterceptor.java:114)
        at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:173)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
        at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
        at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:929)

Exponea.m - Declaration of 'RCTEventEmitter' must be imported from module 'React.RCTEventEmitter' before it is required

Upgraded from v.1.2.0 -> v.1.3.1

There's seems to be a newly added conditional import that is causing an error when I build my Xcode project.

Declaration of 'RCTEventEmitter' must be imported from module 'React.RCTEventEmitter' before it is required
Screenshot 2023-03-20 at 10 31 03

Using
Xcode 14.1
React Native 0.70.6

Have tried cleaning build folder and also tried
rm -rf ~/Library/Caches/CocoaPods Pods ~/Library/Developer/Xcode/DerivedData/*; pod deintegrate; pod setup; pod install;

Any advice on how to solve this?

Android build error

Hi I have an error in the Android build:

  • What went wrong:
    Execution failed for task ':app:mergeAppDebugAssets'.

Could not resolve all files for configuration ':app:appDebugRuntimeClasspath'.
Could not find io.paperdb:paperdb:2.7.1.
Searched in the following locations:
...
Required by:
project :app > project :react-native-exponea-sdk > com.exponea.sdk:sdk:2.9.5

In my package.json I am using the following versions:
react-native: 0.64.2
react-native-exponea-sdk: ^0.5.2

In my app/build.gradle:
minSdkVersion = 23
compileSdkVersion = 30
targetSdkVersion = 30

Any idea what could be wrong?

How to get push token?

is there any way documented for react native, by which i can get push token?
and send them to backend which can set it in google_push_notification_id or apple_push_notification_id.

Manifest merger failed - Attribute application@fullBackupContent value=(false) from AndroidManifest.xml

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed : Attribute application@fullBackupContent value=(false) from AndroidManifest.xml:22:9-42
  	is also present at [com.exponea.sdk:sdk:3.6.1] AndroidManifest.xml:14:9-70 value=(@xml/exponea_default_backup_rules).
  	Suggestion: add 'tools:replace="android:fullBackupContent"' to <application> element at AndroidManifest.xml:5:2-11:19 to override.

I found this guide AppsFlyerSDK/appsflyer-android-sdk#9 (comment) but unsure its correct on latest on version?

Please advise, thank you!

Android crashes with IllegalArgumentException

We are facing crashes on production on Android.
The issue appears on App start

Error and stack trace:
image

The error thrown by the request method from 'NetworkHandlerImpl.kt' in exponea android-sdk.

The issues connected with okhttp packages for Android. This is related PR with an explanation.

Additional info:

"react-native-exponea-sdk": "1.0.0"
"react-native": "0.67.3"

I've followed the steps in the stack trace and realized that URL is broken in :
image

FlushManagerImpl.kt

Release build is failing with minifyDevelopmentReleaseWithR8 with version 15

Task :app:minifyDevelopmentReleaseWithR8 FAILED
ERROR:/project_path/.gradle/caches/transforms-3/2c8d5bc13302d1152f8c7e8d06ed71db/transformed/jetified-sdk-3.6.1-runtime.jar: R8: Type com.exponea.style.AppInboxListViewStyle is defined multiple times: /project_path/.gradle/caches/transforms-3/2c8d5bc13302d1152f8c7e8d06ed71db/transformed/jetified-sdk-3.6.1-runtime.jar:com/exponea/style/AppInboxListViewStyle.class, /project_path/Documents/Alshaya/Alshaya/hm/node_modules/react-native-exponea-sdk/android/build/.transforms/0ea2fd2e68e458c75c7c946d37d3aa92/transformed/classes.jar:com/exponea/style/AppInboxListViewStyle.class

It seems something needs to add in proguard.rules
React Native Exponea SDK (Tried this but not working)
-keep class com.exponea.** { *; }

No Action buttons is Rich push notifications IOS

I have an issue with Rich push notifications for IOS where I can't see action buttons when expanding notification.
I followed the exact steps from https://github.com/exponea/exponea-react-native-sdk/blob/master/documentation/PUSH_IOS.md. I set the same iOS Deployment Target version to the main target and both NotificationServiceExtension and NotificationContentExtension. Also, UNNotificationExtensionCategory is under NSExtension -> NSExtensionAttributes with value EXPONEA_ACTIONABLE.

Here are some screenshots of Xcode implementation: https://drive.google.com/drive/folders/1qXA9Zp8IbC2YQRBSItAu0-Ne5JPwSMP3?usp=sharing

React native - 0.64.0
Xcode - 12.5.1
Real Device ios 14.6

Upgrade to 0.64.0

When I upgrade react native from 0.63.4 to 0.64.0. I am getting error message inside Xcode for file name: Exponea.swift

override init() {} << 'super.init' isn't called on all paths before returning from initializer

Take a look at the below screenshot
Screenshot 2021-03-18 at 23 25 37

Lib directory is missing on package install

Library version: 1.1.1

When we are trying to install the latest library version the library is installed correctly but the lib directory with the javascript files is missing.

P.S. We tried to install it into a new project and we had same error.

Steps to replicate it:

$ mkdir testExponea
$ cd testExponea
$ yarn add react-native-exponea-sdk
$ ls -al node_modules/react-native-exponea-sdk

you will see that the lib directory is missing in contrast with 1.1.0 version

Previous version (1.1.0)

Screenshot 2022-10-11 at 16 47 26

Current version (1.1.1)
Screenshot 2022-10-11 at 16 48 50

Compile error after upgrading to 0.5.2

We're experiencing compile errors after upgrading to version 0.5.2.

The react-native-exponea-sdk dependency is upgraded to 0.5.2 in package.json, yarn is executed, pod update ExponeaSDK is executed and finally yarn ios is run which results in the following error:

The following build commands failed:
	CompileC ~/Library/Developer/Xcode/DerivedData/client-gmsozpqlpckepzcdhiymiawljjky/Build/Intermediates.noindex/Client.build/Debug-iphonesimulator/Client.build/Objects-normal/x86_64/main.o ~/workspace/hello/client/client-app/iOS/Client/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

We have tried changing the compile settings in various ways in Xcode without any success.

We're on Mac (M1 as well as Intel)
Xcode version 12.5.1
React Native version 0.63.4.
Platform version in pod file is specified to 11.0

Any help appreciated.

Does the Exponea React Native SDK support Tracking Universal Linking

Hello,
We are using Universal Link in our react native app. Just want to make sure that the tracking of Universal Linking works in the app.
I don't see any documentation for the same in the React Native SDK. Though I can see the same in the iOS SDK https://github.com/exponea/exponea-ios-sdk/blob/develop/Documentation/UNIVERSAL_LINK.md#-tracking-universal-links

Can you please confirm what needs to be done in the case of implementing Universal Linking on the react native side?

Crashes with react-native 0.66.1

I installed exponea 0.5.2 and used code from docs example

export const configureExponea = async (configuration: Configuration = defaultConfiguration) => {
  try {
    if (!(await Exponea.isConfigured())) {
      return await Exponea.configure(configuration);
    } else {
      console.log('Exponea SDK already configured.');
    }
  } catch (error) {
    console.log(error);
  }
}; 

When i starting the app and trying to configure exponea, it crashes with no error logs in metro.

There are logs from adb

10-26 15:31:26.896  6581  6650 E FlushManagerImpl: java.io.IOException: canceled due to java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/~~bl8ShJkgwpIjlGv1ZINdbw==/com.microcreditselection-g8NS5YTbiECZ-c-37tkVjQ==/base.apk!classes6.dex)
10-26 15:31:26.896  6581  6650 E FlushManagerImpl:      Suppressed: java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/~~bl8ShJkgwpIjlGv1ZINdbw==/com.microcreditselection-g8NS5YTbiECZ-c-37tkVjQ==/base.apk!classes6.dex)
10-26 15:31:26.904  6581  6651 E         : Fetch configuration Failed java.io.IOException: canceled due to java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/~~bl8ShJkgwpIjlGv1ZINdbw==/com.microcreditselection-g8NS5YTbiECZ-c-37tkVjQ==/base.apk!classes6.dex)
10-26 15:31:26.904  6581  6651 E InAppMessageManagerImpl: Preloading in-app messages failed. canceled due to java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/~~bl8ShJkgwpIjlGv1ZINdbw==/com.microcreditselection-g8NS5YTbiECZ-c-37tkVjQ==/base.apk!classes6.dex)
10-26 15:31:26.934  6581  6650 E AndroidRuntime: Process: com.microcreditselection, PID: 6581
10-26 15:31:26.934  6581  6650 E AndroidRuntime: java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/~~bl8ShJkgwpIjlGv1ZINdbw==/com.microcreditselection-g8NS5YTbiECZ-c-37tkVjQ==/base.apk!classes6.dex)
10-26 15:31:26.938  6581  6652 E FlushManagerImpl: java.io.IOException: canceled due to java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/~~bl8ShJkgwpIjlGv1ZINdbw==/com.microcreditselection-g8NS5YTbiECZ-c-37tkVjQ==/base.apk!classes6.dex)
10-26 15:31:26.938  6581  6652 E FlushManagerImpl:      Suppressed: java.lang.NoSuchMethodError: No virtual method log(ILjava/lang/String;Ljava/lang/Throwable;)V in class Lokhttp3/internal/platform/Platform; or its super classes (declaration of 'okhttp3.internal.platform.Platform' appears in /data/app/~~bl8ShJkgwpIjlGv1ZINdbw==/com.microcreditselection-g8NS5YTbiECZ-c-37tkVjQ==/base.apk!classes6.dex)
10-26 15:31:26.943   517  5038 W ActivityTaskManager:   Force finishing activity com.microcreditselection/.MainActivity
10-26 15:31:26.972   517   591 W InputDispatcher: channel '2b4be81 com.microcreditselection/com.microcreditselection.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
10-26 15:31:26.973   517   591 E InputDispatcher: channel '2b4be81 com.microcreditselection/com.microcreditselection.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-26 15:31:26.973   517   591 W InputDispatcher: channel 'e5c6b13 com.microcreditselection/com.microcreditselection.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
10-26 15:31:26.973   517   591 E InputDispatcher: channel 'e5c6b13 com.microcreditselection/com.microcreditselection.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-26 15:31:26.992   517  1447 I ActivityManager: Process com.microcreditselection (pid 6581) has died: prcp TOP 

Push notification action with type "Deep link" not emits "url" event on iOS 14

Hello!
If I receive push notification with type "Deep link" and open it, it emits the "url" event for Linking.
However, if I receive push notification with action with type "Deep link" and tap action, it emits no events, and linking not performs in iOS 14.
This only happens when the passcode is activated on the device.
In Android it works well.

Could not build with react-native version 0.63.5

Hi All,

I am facing the build error while integrate this library into my application which is using react-native version: 0.63.5.

The error is below:



* What went wrong:

> Could not resolve all artifacts for configuration ':classpath'.

   > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20.

     Required by:

         project :

      > The consumer was configured to find a runtime of a component compatible with Java 11, packaged as a jar, and its dependencies declared externally. However we cannot choose between the following variants of org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20:

          - gradle70JavadocElements

          - gradle70RuntimeElements

          - gradle70SourcesElements

          - gradle71JavadocElements

          - gradle71RuntimeElements

          - gradle71SourcesElements

          - javadocElements

          - runtimeElementsWithFixedAttribute

          - sourcesElements

        All of them match the consumer attributes:

          - Variant 'gradle70JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides documentation but the consumer didn't ask for it

                  - Provides javadocs but the consumer didn't ask for it

                  - Doesn't say anything about its target Java version (required compatibility with Java 11)

                  - Doesn't say anything about its elements (required them packaged as a jar)

                  - Provides attribute 'org.gradle.plugin.api-version' with value '7.0' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

          - Variant 'gradle70RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides a library but the consumer didn't ask for it

                  - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it

                  - Provides attribute 'org.gradle.plugin.api-version' with value '7.0' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

          - Variant 'gradle70SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides documentation but the consumer didn't ask for it

                  - Provides sources but the consumer didn't ask for it

                  - Doesn't say anything about its target Java version (required compatibility with Java 11)

                  - Doesn't say anything about its elements (required them packaged as a jar)

                  - Provides attribute 'org.gradle.plugin.api-version' with value '7.0' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

          - Variant 'gradle71JavadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides documentation but the consumer didn't ask for it

                  - Provides javadocs but the consumer didn't ask for it

                  - Doesn't say anything about its target Java version (required compatibility with Java 11)

                  - Doesn't say anything about its elements (required them packaged as a jar)

                  - Provides attribute 'org.gradle.plugin.api-version' with value '7.1' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

          - Variant 'gradle71RuntimeElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides a library but the consumer didn't ask for it

                  - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it

                  - Provides attribute 'org.gradle.plugin.api-version' with value '7.1' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

          - Variant 'gradle71SourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides documentation but the consumer didn't ask for it

                  - Provides sources but the consumer didn't ask for it

                  - Doesn't say anything about its target Java version (required compatibility with Java 11)

                  - Doesn't say anything about its elements (required them packaged as a jar)

                  - Provides attribute 'org.gradle.plugin.api-version' with value '7.1' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

          - Variant 'javadocElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides documentation but the consumer didn't ask for it

                  - Provides javadocs but the consumer didn't ask for it

                  - Doesn't say anything about its target Java version (required compatibility with Java 11)

                  - Doesn't say anything about its elements (required them packaged as a jar)

                  - Provides release status but the consumer didn't ask for it

          - Variant 'runtimeElementsWithFixedAttribute' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides a library but the consumer didn't ask for it

                  - Provides attribute 'org.gradle.jvm.environment' with value 'standard-jvm' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

          - Variant 'sourcesElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a runtime of a component, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides documentation but the consumer didn't ask for it

                  - Provides sources but the consumer didn't ask for it

                  - Doesn't say anything about its target Java version (required compatibility with Java 11)

                  - Doesn't say anything about its elements (required them packaged as a jar)

                  - Provides release status but the consumer didn't ask for it

        The following variants were also considered but didn't match the requested attributes:

          - Variant 'apiElementsWithFixedAttribute' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:

              - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component

          - Variant 'gradle70ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:

              - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component

          - Variant 'gradle71ApiElements' capability org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20 declares a component compatible with Java 8, packaged as a jar, and its dependencies declared externally:

              - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component

It looks like to does support this react-native version. Do you guys know what minimum react-native version is required?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.