Top

iOS Push notification crash

Commentaires

7 commentaires

  • Apurva DONGRE

    This issue is solved.

    Thanks.

    0
    Actions pour les commentaires Permalien
  • Prakash

    Hi Apurva,
    i am facing same issue. can you share that solution?

    Thanks,

    0
    Actions pour les commentaires Permalien
  • Apurva DONGRE

    Hello Prakash , 

    Hers's the solution i came up with ,I just put the code on main thread..

    dispatch_async(dispatch_get_main_queue(), ^{

        [[ServicesManager sharedInstance] setAppID:kAppID secretKey:kSecretKey];

        [[ServicesManager sharedInstance].rtcService requestMicrophoneAccess];

        [[ServicesManager sharedInstance].rtcService startCallKitWithIncomingSoundName:@"incoming-call.mp3" iconTemplate:@"Icon-40.png" appName:[self applicationName]];

        [[ServicesManager sharedInstance].rtcService setAppSoundOutgoingCall:@"outgoing-rings.mp3"];

        [[ServicesManager sharedInstance].rtcService setAppSoundHangup:@"hangup.wav"];

      });

    It Worked forme , Do let me know if it works for you ..... :)

    0
    Actions pour les commentaires Permalien
  • Prakash

    Hi Apurva,
    Thanks for your response.
    I tried above the code. i am getting same crash. check below link for my issue detail.

    https://support.openrainbow.com/hc/en-us/community/posts/360007050299-Notification-click-and-open-the-app-get-crashed-in-iOS

    0
    Actions pour les commentaires Permalien
  • Apurva DONGRE

    Can you share the set of code in didFinishlaunching method ?

    0
    Actions pour les commentaires Permalien
  • Prakash

    Hi,
    I am calling this method from didFinishlaunching.

    func configRainbow() {

            DispatchQueue.main.async {

                ServicesManager.sharedInstance()?.setAppID(kID, secretKey:kSecretKey)

                ServicesManager.sharedInstance()?.rtcService.requestMicrophoneAccess()

                ServicesManager.sharedInstance()?.rtcService.startCallKit(withIncomingSoundName: "incoming-call.mp3", iconTemplate: "", appName: "MYAPP")

                ServicesManager.sharedInstance()?.rtcService.appSoundOutgoingCall = "outgoing_ringing.mp3"

                ServicesManager.sharedInstance()?.rtcService.appSoundHangup = "hangup.wav"

                self.registerForPushNotifications()

            }

        }

    0
    Actions pour les commentaires Permalien
  • Apurva DONGRE

    Try putting self.registerForPushNotifications() outside the thread....

     

    func configRainbow() {

            DispatchQueue.main.async {

                ServicesManager.sharedInstance()?.setAppID(kID, secretKey:kSecretKey)

                ServicesManager.sharedInstance()?.rtcService.requestMicrophoneAccess()

                ServicesManager.sharedInstance()?.rtcService.startCallKit(withIncomingSoundName: "incoming-call.mp3", iconTemplate: "", appName: "MYAPP")

                ServicesManager.sharedInstance()?.rtcService.appSoundOutgoingCall = "outgoing_ringing.mp3"

                ServicesManager.sharedInstance()?.rtcService.appSoundHangup = "hangup.wav"

     

            }

        }

      self.registerForPushNotifications()

     

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

Vous n'avez pas trouvé ce que vous cherchez?

  • Contactez-nous

    Vous avez des questions? Laissez-nous un message pour obtenir plus d'informations.

    Contactez-nous
  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message