Code Monkey home page Code Monkey logo

apphudsdk-react-native's Introduction

Apphud

Greetings!

Apphud SDK is an open-source library for iOS and Android to manage auto-renewable subscriptions and other in-app purchases in your app.

Apphud has SDKs in iOS (Swift), Android (Kotlin), and cross-platform SDKs: React Native and Flutter.

What is Apphud?

Apphud is all-in-one infrastructure for your app growth. Apphud helps marketing and product management teams to make right decisions based on the data and tools.

Subscriptions Infrastructure

Integrate in-app purchases and subscriptions in your mobile app in 2 lines of code. No server code required. Apphud works with all apps on iOS, iPadOS, MacOS, tvOS, watchOS and Android. Cross-platform support out of the box.

Real-time Revenue Analytics

View key subscription metrics in our dashboard and charts, like MRR, Subscriber Retention (Cohorts), Churn rate, ARPU, Trial Conversions, Proceeds, Refunds, etc.

Integrations

Send subscription events to your favorite third party platforms with automatic currency conversion. Choose from 18 integrations, including: AppsFlyer, Adjust, Branch, Firebase, Amplitude, Mixpanel, OneSignal, Facebook, TikTok, and more. Custom Server-to-Server webhooks and APIs are also available.

A/B Experiments

Test different in-app purchases and paywalls. Run experiments to find the best combination of prices and purchase screen parameters that maximize ROI.

Web-to-App (iOS)

Web-to-App solution overcomes IDFA limitations in the post iOS 14.5 era. Using this solution you can run paid campaigns in Facebook or TikTok and get real-time attribution with nearly 100% accuracy.

Rules (iOS)

Apphud may win back lapsed subscribers, reduce churn rate, get cancellation insights, send push notifications and many more using the mechanics below. This mechanics are called Rules. Choose between manual, scheduled and automated rule. Manual rules will be performed manually, scheduled rule will be performed on a certain time, automated rule will be triggered after certain event. Use our visual web editor to create you custom screen or screen sequence for Rule, and analyze user stats from every created screen.

Why Apphud?

Complete mobile in-app purchases stack with no extra costs. Don’t waste time and money on building your own in-app purchases infrastructure. Use Apphud for free until your app revenue increases $10,000 per month.

Focused on data accuracy. Apphud provides the highest accuracy on app revenue tracking. Analyze all important app metrics with a confidence.

Trusted by thousands of mobile apps worldwide. From small apps earning a few thousands per month to a leading mobile-focused companies.

Support that really cares. With Apphud you can be sure you’re not alone with in-app subscription growth challenges. We proud of our zero-ignored tickets support – answering to every request in minutes! Customers success and priority support for Enterprise clients.

Retain users and grow revenue. Use our Rules to engage and re-engage subscribers with no code required. Run A/B pricing experiments to find a better price.

Installation

Create your account at Apphud for free. Please feel free to read our SDK Integration Guide.

Having a question?

If you have any questions or troubles with SDK integration feel free to contact us. We are online.

https://apphud.com/contacts

Like Apphud? Place a star at the top 😊

apphudsdk-react-native's People

Contributors

alexandr-makarov-am avatar ren6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apphudsdk-react-native's Issues

Can't upload paywalls list on some devices iOS / Android

Trying to upload paywalls using:

try {
        const paywalls = await ApphudSdk.paywalls();
        console.log(paywalls) // paywalls not fetched (console log don't work, because promise ApphudSdk.paywalls not performed
} catch (err) {
        console.log(err) // catch console log didn't received
}
    "@apphud/react-native-apphud-sdk": "^2.0.0"
    "react-native": "0.67.1"

[Android] Wrong subscription details

I can't fetch correct data about user current subscription.

.subscription() method should return last subscription status, but when i try to call it I get old data.

I just ordered subscription, and after that I got:

image

but when I try to buy the same subscription again, Android dialog tells me that I have already this one.

This issue don't allow to show information about current subscription.

[Android] Subscription's price in wrong format.

Hello,

There is something wrong, with format of data returned by ApphudSDK for Android.

In src/index.ts, you declared price of ApphudProduct interface as number:

export interface ApphudProduct {
  id: string;
  price: number; // <!-- price declared as number
  regionCode: string;
  currencyCode?: string;
}

but SDK returns string in this attribute:

image

[iOS] [v1.0.3] Cannot install Pod dependencies.

Hey,

Attempting to install the newest version ends with the following error:

Installing ApphudSDK 1.0.5 (was 0.18.6 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Installing react-native-apphud-sdk (1.0.3)
[!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod `react-native-apphud-sdk` depends upon `React-Core`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.

Adding use_modular_headers! to Podfile solves the problem. I think it is worth adding it to the documentation in chapter: Installation.

`paywallsDidFullyLoad` is not a supported event type for ApphudSdkEvents.

When I call

Apphud.start({ apiKey: 'myApiKey'})

I'm getting this error

also it shows these two errors

WARN  Sending `paywallsDidFullyLoad` with no listeners registered.
WARN  Sending `apphudDidFetchStoreKitProducts` with no listeners registered.

package.json

"dependencies": {
    "@apphud/react-native-apphud-sdk": "^1.1.0",
    "react": "18.2.0",
    "react-native": "0.71.8",
  },

Any updates on this package?

Just wondering, is there any timeline for this package to be delivered? Would make my decision for migrating from RevenueCat much easier.

[Android] Crash app after starting SDK

in src/index.ts parameter deviceId is presented as optional:

export interface StartProperties {
  apiKey: string;
  userId?: string;
  deviceId?: string;
  observerMode?: boolean;
}

but starting Apphud in this way:

ApphudSdk.start({
   apiKey: 'api_xxx',
   userId: 'uuid007'
});

cause a crash of app with totally unclear message deviceId.

Android crash on ApphudSdk.purchase

Calling ApphudSdk.purchase(...) and get crash on android. iOS works correctly

"@apphud/react-native-apphud-sdk": "^2.0.0",

"react-native": "0.67.1",

build.gradle config

        buildToolsVersion = "30.0.2"
        minSdkVersion = 26
        compileSdkVersion = 33
        targetSdkVersion = 33
        ndkVersion = "21.4.7075529"
        ext {
            kotlin_version = '1.7.10'
        }
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:4.2.2")
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        classpath 'com.google.gms:google-services:4.3.10'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
FATAL EXCEPTION: mqt_native_modules

com.facebook.react.bridge.NoSuchKeyException: isConsumable

FATAL EXCEPTION: mqt_native_modules
Process: com.naturesoundsapp, PID: 17866
com.facebook.react.bridge.NoSuchKeyException: isConsumable
	at com.facebook.react.bridge.ReadableNativeMap.getValue(ReadableNativeMap.java:110)
	at com.facebook.react.bridge.ReadableNativeMap.getValue(ReadableNativeMap.java:114)
	at com.facebook.react.bridge.ReadableNativeMap.getBoolean(ReadableNativeMap.java:146)
	at com.reactnativeapphudsdk.ApphudSdkModule.purchase(ApphudSdkModule.kt:99)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
	at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:188)
	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
	at android.os.Looper.loop(Looper.java:223)
	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
	at java.lang.Thread.run(Thread.java:923)

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.