I need to migrate an old app writen in Objective-C to Swift. This app uses IBM solution Silverpop for push notifications.
I am having some troubles during my migration with the Silverpop solution. The framework is written in Objective-C and when I follow the documentation or sample on GitHub (there is difference between doc and sample..) I cannot get the app to work.
The App crashes in main.swift
that the documentation asked me to create with:
import Foundation
import UIKit
UIApplicationMain(CommandLine.argc, nil, nil, "MCEAppDelegate")
On launch the app crashes with:
Thread 1: EXC_BAD_ACCESS (code=1, address=0x8)
Documentation : https://developer.ibm.com/customer-engagement/tutorials/getting-started-mobile-app-messaging-ios-apps/
Sample : https://github.com/ibm-mobile-push/ios/tree/master/samples/Swift%20Automatic%20Sample/SwiftSample
my MceConfig.json
{
"baseUrl": "https://api.ibm.xtify.com/3.0/",
"appKey": {
"dev":"xxxx",
"prod":"xxxx"
},
"appDelegateClass": "AppDelegate",
"autoInitializeFlag": true,
"sessionTimeout": 20,
"metricTimeInterval": 180,
"loglevel": "verbose",
"logfile": false
}
Any help will be appreciated!
appKey
of course). – OOPer