ringcentral / engage-digital-messaging-ios

Engage Digital Messaging IOS SDK
Other
10 stars 6 forks source link

didReceiveRemoteNotification not called #39

Closed tosuccesspractice closed 4 years ago

tosuccesspractice commented 4 years ago

i send notification i receive it on the phone no problem

now i want to customise image title ...

the problem is this function on delegate was never called didReceiveRemoteNotification

On appDelegate didFinishLaunchingWithOptions :

            // Dimelo: Push Notif and Badge
    dimelo?.updateAppBadgeNumber = true
    dimelo?.developmentAPNS = true
    dimelo?.initialize(withApiSecret: BuildConfig.GetInstance().getDimeloApiSecret(), domainName: BuildConfig.GetInstance().getDimeloDomainName(), delegate: self)

     func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
    // Register the device token.
    Dimelo.sharedInstance().deviceToken = deviceToken
}

func dimeloDidBeginNetworkActivity(_ dimelo: Dimelo?) {
    UIApplication.shared.isNetworkActivityIndicatorVisible = true
}

func dimeloDidEndNetworkActivity(_ dimelo: Dimelo?) {
    UIApplication.shared.isNetworkActivityIndicatorVisible = false
}

func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
    dimelo?.consumeReceivedRemoteNotification(userInfo)
}

I already activate remote notification on baclground mode

but the function didReceiveRemoteNotification was never called :(

tosuccesspractice commented 4 years ago

i use

    func dimelo(_ dimelo: Dimelo!, shouldDisplayNotificationWithText message: String!) -> Bool {
    return false
}

but this function never called

tosuccesspractice commented 4 years ago

why nobody respond ? it's really urgent problem ?

waelba commented 4 years ago

Hi @tosuccesspractice,

I will check this and I will back to you as soon as possible.

Regard,

tosuccesspractice commented 4 years ago

how many times ? because it's really problematic for me :( i already lost a lot of time because of this problem

i never get inside this function shouldDisplayNotificationWithText

Bacdol commented 4 years ago

Hi, can you say me for which customer do you integration our mobile SDK ? Thanks to it we can route you to the good person for support, regards.

tosuccesspractice commented 4 years ago

it's for Engie

Bacdol commented 4 years ago

We do not have any in progress mobile integration project with Engie for the moment, if you need support on existing mobile integration you need to contact our support team by email (support.engagedigital@ringcentral.com) to be redirection to a technical resources.

DrissTM commented 4 years ago

I'm closing this issue. Don't hesitate to re-open or create a new one if needed.

Regards, Driss.