Top

iOS Push notification crash

Comments

7 comments

  • Apurva DONGRE

    This issue is solved.

    Thanks.

    0
    Comment actions Permalink
  • Prakash

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

    Thanks,

    0
    Comment actions Permalink
  • 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
    Comment actions Permalink
  • 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
    Comment actions Permalink
  • Apurva DONGRE

    Can you share the set of code in didFinishlaunching method ?

    0
    Comment actions Permalink
  • 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
    Comment actions Permalink
  • 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
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message