AgoraIO / agora-react-native-rtm

React Native around the Agora RTM SDKs for Android and iOS agora
https://www.agora.io/en/
MIT License
63 stars 36 forks source link

Events doesn't triggered in App after deploy #40

Open ithustle opened 3 years ago

ithustle commented 3 years ago

Hello,

I tested in simulator and devices on development environment but after deploy the app (Android Apk) the event didn't triggered. Is there an one more step to do before deploy the app that I've supposed missed?

"agora-react-native-rtm": "^1.2.2-alpha.3"

System:
    OS: macOS 11.3
    CPU: (8) arm64 Apple M1
    Memory: 169.17 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.0 - /opt/homebrew/opt/node@14/bin/node
    Yarn: 1.22.10 - /opt/homebrew/bin/yarn
    npm: 6.14.13 - /opt/homebrew/opt/node@14/bin/npm
    Watchman: 4.9.0 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK: Not Found
  IDEs:
    Android Studio: 4.2 AI-202.7660.26.42.7351085
    Xcode: 12.5/12E262 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_292 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.64.1 => 0.64.1 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
LichKing-2234 commented 3 years ago

which event?

ithustle commented 3 years ago

channelMessageReceived in particulary... But I Guess none of them...

LichKing-2234 commented 3 years ago

have you tried our example?

ithustle commented 3 years ago

I build my solutions based in your examples. Is there a step have I missed? That works on Dev mode. But when I build an apk didn't

LichKing-2234 commented 3 years ago

maybe you forget to add the proguard rule?

LichKing-2234 commented 3 years ago

https://github.com/AgoraIO/agora-react-native-rtm/blob/master/android/consumer-rules.pro

LichKing-2234 commented 3 years ago

you can get more information from the logcat, and try to find any error log about our SDK?

ithustle commented 3 years ago

maybe you forget to add the proguard rule?

I miss that step. I'll check this out...