Giter VIP home page Giter VIP logo

blueshift-ios-sdk's People

Contributors

anwarshahas avatar arjunthedragon avatar aswani521 avatar elizabethclarysse avatar ketanshikharebsft avatar maheshtv911 avatar mike-roberts avatar natanrolnik avatar nipunbhatia avatar noufalsubair avatar rahulrvp avatar sharathflogic avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blueshift-ios-sdk's Issues

Cannot initialize a parameter of type API_AVAILABLE(ios(10.0))...

Adding the iOS SDK to a new React Native 0.70 build is throwing up two errors that seems to be related in xcode during build;

// AppDelegate.mm
...
// Set userNotificationDelegate for push notifications
  [config setUserNotificationDelegate:self];

^^ Cannot initialize a parameter of type 'API_AVAILABLE(ios(10.0)) NSObject<UNUserNotificationCenterDelegate> *' with an lvalue of type 'AppDelegate *const __strong'


...

- (void)application:(UIApplication *)application didReceiveLocalNotification:(nonnull UILocalNotification *)notification {
    [[BlueShift sharedInstance].appDelegate application:application handleLocalNotification:notification];
}

^^ Cannot initialize a parameter of type 'UNNotificationRequest * _Nonnull' with an lvalue of type 'UILocalNotification * _Nonnull __strong'

I have added the SDK as per the documentation and this was previously working with RN version 0.64. I can't see where this would have changed and the error messaging is a little obscure - hoping you might be able to shed some light.

I have tried this with both 2.2.6 and 2.3.0 and get the same errors in xcode

Illegal attempt to save to a file that was never opened. "This NSPersistentStoreCoordinator has no persistent stores (unknown)

Hello, I'm currently writing a bridge to react native, I created a class with the following code:
#import "RNBlueshift.h"

@implementation RNBlueshift

RCT_EXPORT_MODULE();

RCT_EXPORT_METHOD(userLogin:(NSString *)email customerId:(NSString *)customerId)
{

NSDictionary *details = @{
@"email":email,
@"customer_id":customerId,
};

[[BlueShiftUserInfo sharedInstance] setEmail:email];
[[BlueShiftUserInfo sharedInstance] setRetailerCustomerID:customerId];

[[BlueShiftUserInfo sharedInstance] save];

[[BlueShift sharedInstance] identifyUserWithDetails:details canBatchThisEvent:YES];

}

@EnD

Everything is working fine until It tries to identify the user, the app completely crashed with the following error: [error] error: Illegal attempt to save to a file that was never opened. "This NSPersistentStoreCoordinator has no persistent stores (unknown). It cannot perform a save operation.". No last error recorded.

Everything it's been configured according to the documentation, any ideas what could be?

Conflict name with SDWebImage

You're using same file name with SDWebImage. 'UIColor+HexString.h'
So we have error when build debug
'UIColor+HexString.h' file not found

Can not archive when using Blueshift SDk 2.0.1

Our podfile using both BlueShift-iOS-SDK and BlueShift-iOS-Extension-SDK

pod 'BlueShift-iOS-SDK', '2.0.1'
pod 'BlueShift-iOS-Extension-SDK','2.0.1'

I have error when archive our project
error: Multiple commands produce '/Users/jenkins/Library/Developer/Xcode/DerivedData/TikiProject-ebwsrhyvxixzkzfnutlowxgmsllf/Build/Intermediates.noindex/ArchiveIntermediates/TikiDev/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/BlueShiftBundle.bundle'

Update deprecated code since iOS 10

Currently the pod is returning several warnings due to syntax deprecated since iOS 10. Please could you release a new version with this fixed? Thanks

'UIMutableUserNotificationCategory' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationCategory

'UIUserNotificationType' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNAuthorizationOptions

'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest

Blueshift SDK fails to compile when xcode 14.3 is used

When building an iOS app, with the Blueshift SDK integrated, using Xcode 14.3 the app fails to build with this error:

▸ Compiling InAppNotificationEntity.m

❌  /Users/distiller/project/ios/Pods/BlueShift-iOS-SDK/BlueShift-iOS-SDK/InApps/InAppNotificationEntity.m:100:1: non-void function does not return a value [-Werror,-Wreturn-type]

}
                              ^


▸ Compiling HttpRequestOperationEntity.m

❌  /Users/distiller/project/ios/Pods/BlueShift-iOS-SDK/BlueShift-iOS-SDK/HttpRequestOperationEntity.m:137:1: non-void function does not return a value [-Werror,-Wreturn-type]

}
^



❌  /Users/distiller/project/ios/Pods/BlueShift-iOS-SDK/BlueShift-iOS-SDK/HttpRequestOperationEntity.m:192:1: non-void function does not return a value [-Werror,-Wreturn-type]

}
^

(output via Circle CI / fastlane job)

Info:
Blueshift SDK: 2.3.0
CircleCI image: 14.3.0 RC, macOS intel machine. We have also experienced this issue while building on local dev M1 machines with Xcode 14.3.0.

SDK is throwing CoreData exceptions

I'm getting in the console:

CoreData: error:  Cannot load NSManagedObjectModel.  nil is an illegal URL parameter

Xcode breaks on line 969 in BlueShiftAppDelegate.m

    _managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL];

What am I doing wrong?
My setup code is:

    private func configureBlueShift() {
        // Set batch upload interval period in seconds
        BlueShiftBatchUploadConfig.sharedInstance().batchUploadTimer = 60.0
        
        // Set the api key for the config
        let config = BlueShiftConfig()
        config.apiKey = self.blueShiftApiKey

        // Initialize it
        BlueShift.initWithConfiguration(config)
    }

Which is copy and paste from the docs pretty much, just in Swift.
I am using Blueshift iOS SDK v0.3.2

Error EXC_BAD_ACCESS KERN_INVALID_ADDRESS

Hi everyone,

Recently I met some crashes related to HttpRequestOperationEntity.m line 42. I hope you guys can check and support us asap. Thanks

Crashed: ....blueshift.analytics
0  CoreFoundation                 0x189608160 __CFBasicHashAddValue + 1424
1  CoreFoundation                 0x1894ad7d0 CFBasicHashAddValue + 2000
2  CoreData                       0x18b8cb9ac _PFFastMOCObjectWillChange + 260
3  CoreData                       0x18b8cb6a4 _PF_ManagedObject_WillChangeValueForKeyIndex + 244
4  CoreData                       0x18b8cb4c0 _sharedIMPL_setvfk_core + 212
5  BlueShift_iOS_SDK              0x103ce638c -[HttpRequestOperationEntity insertEntryWithMethod:andParameters:andURL:andNextRetryTimeStamp:andRetryAttemptsCount:andIsBatchEvent:] + 42 (HttpRequestOperationEntity.m:42)
6  BlueShift_iOS_SDK              0x103ce23a4 +[BlueShiftRequestQueue addRequestOperation:] + 79 (BlueShiftRequestQueue.m:79)
7  BlueShift_iOS_SDK              0x103cd3ae0 -[BlueShift performRequestWithRequestParameters:canBatchThisEvent:] + 589 (BlueShift.m:589)
8  BlueShift_iOS_SDK              0x103cd3764 -[BlueShift trackEventForEventName:andParameters:canBatchThisEvent:] + 556 (BlueShift.m:556)
9  BlueShift_iOS_SDK              0x103cd1dc0 -[BlueShift identifyUserWithEmail:andDetails:canBatchThisEvent:] + 154 (BlueShift.m:154)
10 TikiProject                    0x101a6eccc __35-[TKBlueShiftIntegration identify:]_block_invoke + 36 (TKBlueShiftIntegration.m:36)
11 libdispatch.dylib              0x18848a9a0 _dispatch_client_callout + 16
12 libdispatch.dylib              0x188497604 _dispatch_continuation_pop + 448
13 libdispatch.dylib              0x1884a3c1c _dispatch_source_latch_and_call + 204
14 libdispatch.dylib              0x18848c8a0 _dispatch_source_invoke + 804
15 libdispatch.dylib              0x188498964 _dispatch_queue_serial_drain + 560
16 libdispatch.dylib              0x18848e2cc _dispatch_queue_invoke + 884
17 libdispatch.dylib              0x188498fa8 _dispatch_queue_override_invoke + 344
18 libdispatch.dylib              0x18849aa50 _dispatch_root_queue_drain + 540
19 libdispatch.dylib              0x18849a7d0 _dispatch_worker_thread3 + 124
20 libsystem_pthread.dylib        0x188693100 _pthread_wqthread + 1096
21 libsystem_pthread.dylib        0x188692cac start_wqthread + 4

MOM file not found!

Xcode 15.0:

error: Resource "/Users/..../Library/Developer/Xcode/DerivedData/.....-eqblrtjsknetarallbkprdqzkcfu/Build/Products/Debug-iphonesimulator/BlueShift-iOS-SDK/BlueShift_iOS_SDK.framework/BlueShiftSDKDataModel 2.mom" not found. Run 'pod install' to update the copy resources script.

I have tried 'pod deintegrate' and 'pod install' but still gives the same error.

Please help, thanks.

Duplicate file 'BlueshiftEventAnalyticsHelper' and 'InAppNotificationEntity'

Dear @rahulrvp
My podfile is

target 'MainApp' do
pod 'BlueShift-iOS-SDK', '2.0.4'
end

target 'NotificationServices' do
pod 'BlueShift-iOS-Extension-SDK', '2.0.4'
end

When we build debug we have a warning message here:

objc[301]: Class BlueshiftEventAnalyticsHelper is implemented in both /private/var/containers/Bundle/Application/5CB8EC09-6EDD-49C2-A0AF-AA894450D87C/TikiProject.app/Frameworks/BlueShift_iOS_SDK.framework/BlueShift_iOS_SDK (0x10aaf1830) and /private/var/containers/Bundle/Application/5CB8EC09-6EDD-49C2-A0AF-AA894450D87C/TikiProject.app/Frameworks/BlueShift_iOS_Extension_SDK.framework/BlueShift_iOS_Extension_SDK (0x10aa4d588). One of the two will be used. Which one is undefined.

objc[301]: Class InAppNotificationEntity is implemented in both /private/var/containers/Bundle/Application/5CB8EC09-6EDD-49C2-A0AF-AA894450D87C/TikiProject.app/Frameworks/BlueShift_iOS_SDK.framework/BlueShift_iOS_SDK (0x10aaf2190) and /private/var/containers/Bundle/Application/5CB8EC09-6EDD-49C2-A0AF-AA894450D87C/TikiProject.app/Frameworks/BlueShift_iOS_Extension_SDK.framework/BlueShift_iOS_Extension_SDK (0x10aa4d718). One of the two will be used. Which one is undefined.

Build debug still work but I want to remove this warning, some files you was copied to both BlueShift-iOS-SDK and BlueShift-iOS-Extension-SDK. Please consider to fix it, maybe warning can become error in the future.
Thank in advance

Xcode10 can't load Blueshift SDK bundles

Hi Team,
We are on the latest Blueshift-iOS-SDK and latest cocopods, and the app is crashing at launch with the below error.
On looking deeper it looks like the Blueshift resources are not getting copied correctly.
This issue is happening only in XCode 10 any version below works fine.
Which Version of cocopods is this build on? Any workarounds here?

Log:-

BlueShiftWarning: Email not set for BlueShiftUserInfo
2018-09-19 11:44:10.824944-0400 LendingTree[3139:782048]

BlueShiftWarning: Retailer Customer ID not set for BlueShiftUserInfo
2018-09-19 11:44:10.825174-0400 LendingTree[3139:782048] [error] error: Cannot load NSManagedObjectModel. nil is an illegal URL parameter
CoreData: error: Cannot load NSManagedObjectModel. nil is an illegal URL parameter
2018-09-19 11:44:10.826471-0400 LendingTree[3139:782048] Caught exception CoreData: Cannot load NSManagedObjectModel. nil is an illegal URL parameter
2018-09-19 11:44:10.827815-0400 LendingTree[3139:782277] [error] error: Cannot load NSManagedObjectModel. nil is an illegal URL parameter
CoreData: error: Cannot load NSManagedObjectModel. nil is an illegal URL parameter
(lldb)

'BlueShiftNotificationConstants.h' file not found

We used BlueShift SDK version 2.0.1

/Users/ducnguyen/WORKS/BlueShift-iOS-SDK/BlueShift-iOS-SDK/InApps/InAppNotificationEntity.m:9:9: fatal error: 'BlueShiftNotificationConstants.h' file not found
#import "BlueShiftNotificationConstants.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.