Posts tagged with react-native

This is my first time trying to do react-native bridge. Problem is it always says it couldnt find the dependency, irrespective of my integration, I should be able to download the dependency right? I am trying to bridge: https://developer.imepay.com.np/#/andriod-sdk

I am not being able to implement the dependecy:

implementation 'com.swifttechnology.imepaysdk:payment-service:4.0.1

In my main/java/imepayintegration: ImepayModule.java:

package com.reactnativeimepay; import androidx.annotation.NonNull; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.bridge.ReactMethod; import com.facebook.react.bridge.Promise; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.bridge.ReactMethod; import java.util.Map; import java.util.HashMap; import com.swifttechnology.imepaysdk.IMEPayment; import com.swifttechnology.imepaysdk.IMEPaymentCallback; import com.swifttechnology.imepaysdk.ENVIRONMENT; public class ImepayModule extends ReactContextBaseJavaModule {     private final ReactApplicationContext reactContext;     public ImepayModule(ReactApplicationContext reactContext) {         super(reactContext);         this.reactContext = reactContext;     }     @Override     public String getName() {         return "ImepayModule";     }     @ReactMethod     public void performPayment(String merchantCode, String merchantName, String module,                                String username, String password, String referenceValue,                                String amount, String merchantTransactionRecordingUrl,                                Promise promise) {         IMEPayment imePayment = new IMEPayment(reactContext, ENVIRONMENT.TEST);         imePayment.performPayment(merchantCode,                 merchantName,                 merchantTransactionRecordingUrl,                 amount,                 referenceValue,                 module,                 username,                 password,                 new IMEPaymentCallback() {                     @Override                     public void onSuccess(int responseCode, String responseDescription,                                           String transactionId, String msisdn,                                           String amount, String refId) {                         promise.resolve("Payment successful");                     }                     @Override                     public void onError(int responseCode, String responseDescription) {                         promise.reject("ERROR", responseDescription);                     }                 });     } } 

ImepayPackage.java:

package com.reactnativeimepay; import java.util.Arrays; import java.util.Collections; import java.util.List; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.uimanager.ViewManager; public class ImepayPackage implements ReactPackage {     @Override     public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {         return Arrays.<NativeModule>asList(new ImepayModule(reactContext));     }     @Override     public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {         return Collections.emptyList();     } } 

I’m working on a React Native app and want to track app installations using Facebook’s Conversion API. I’ve set up Facebook’s SDK in my app, but I’m having trouble integrating the Conversion API.

Here’s what I’ve done so far:

  • Integrated Facebook SDK for React Native.
  • Configured Facebook app events. Events can be seen on the Events Manager dashboard.
  • Consulted the Facebook documentation on Conversion API.

I’ve found that the Conversion API is mainly designed for server-side tracking. My questions are:

  • How can I send installation events from a React Native app to the Facebook Conversion API?
  • Are there any specific libraries or tools I should use to facilitate this integration?
  • Should I send these events directly from the app, or is it better to send them through a server? Any guidance or examples would be greatly appreciated!

I really appreciate any help you can provide.

I have created an app on the Facebook developer account and I'm using those details to implement Facebook login in my react-native app. Are there any settings available on the Facebook Developer Account where I can allow login specifically only for my react-native app E.g. by specifying my package name so that the login works only for the app with that package name.

I am looking for a way to get Firebase working in an app built in React Native Expo, so that it gives out some sort of data for Google Ads to use and count as a conversion metric, when someone installs our iOS app by way of clicking on a Google Ad served to them.

It's shocking that Google hasn't made this easier, but there is currently no way of measuring Google Ads Conversions for an App Install campaign, without using Firebase.

I have been working with Google Ads support over the past month, and they have been unable to help me. So according to Google Ads support, the only way to count conversion metrics for iOS installs is to use Firebase embedded in our app to get some data out of the app once it's installed by an end user. Or some other 3rd party tool that they are unable to recommend or support.

Looking at embedding Firebase into how our app is currently architected in React Native Expo seems like a huge overhaul. Any tips or tricks? Has anyone made this work properly with Google Ads iOS app installs campaigns?

I'm developing a React Native Expo app, and I'm using the Facebook Graph API to fetch videos from my Facebook page and stream them within the app using WebView. However, I'm encountering an issue where I sometimes receive two different versions of the videos when making the same API call. This inconsistency is causing confusion, and I can't determine the root cause.

When I fetch the videos using the Graph API and display them in a WebView, I sometimes get two different versions of the same video content. This inconsistency is not predictable, and I can't figure out why it's happening.

Every thing works but the end result it changes randomly(how the videos gets displayed)

Image1: This version i Like it

Image2: This one is not so much

The first one lets me change the quality and play the video in that screen, while the second one goes into fullscreen mode when clicked and plays the videos with no additional controls