Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid OS Version check for UINotification availability #128

Closed
1 task done
dmiluski opened this issue Oct 9, 2017 · 6 comments
Closed
1 task done

Invalid OS Version check for UINotification availability #128

dmiluski opened this issue Oct 9, 2017 · 6 comments

Comments

@dmiluski
Copy link

dmiluski commented Oct 9, 2017

  • (NSSet<UNNotificationCategory *> *)getAppboyUNNotificationCategorySet;

#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0

  • (NSSet<UIUserNotificationCategory *> *)getAppboyUIUserNotificationCategorySet;
    #endif

This min required? Is this mandatory? We have UNNotification migration on the road map, but haven't done this yet? Perhaps, instead of MIN required check, this could just be marked deprecated to match the Foundation API?

Yes... I am ashamed we have not yet updated. But the OS check in this case does not match the OS definition. As UIUserNotifiations are still usable even in iOS11, but Apple prefers UNNotification.

Recommendation:
Instead of OS check, just mark deprecated

  • (NSSet<UIUserNotificationCategory *> *)getAppboyUIUserNotificationCategorySet __deprecated;

Report

Describe your environment.

Info Value
Platform Name e.g. ios / tvos
Platform Version e.g. 8.0
SDK Version e.g. 3.7.6
Integration Method e.g. carthage / cocoapods / manually
Xcode Version e.g. Xcode 7.3
Repro rate e.g. all the time (100%) / sometimes x% / only once

What did you do?

What did you expect to happen?

What happened instead?

Steps to reproduce

Code Snippet

Are you doing any feature customizations that may relate to the issue? Can you share the code snippet?

Project that demonstrates the issue

@dmiluski dmiluski changed the title Invalid OS Version check for method availability Invalid OS Version check for UINotification availability Oct 9, 2017
@sen-lu
Copy link
Contributor

sen-lu commented Oct 10, 2017

Thanks for the suggestion, @dmiluski! We think moving to a deprecation warning is a good idea and will keep you updated. In the meantime, is the OS version check is currently blocking your ability to integrate the SDK? If so, you can use a category to expose the getAppboyUIUserNotificationCategorySet method for immediate use.

Best,
Tiff

@edias
Copy link

edias commented Dec 13, 2017

Do you guys have a solution for the warnings around UNNotificationResponse?

UNNotificationResponse' is partial: introduced in iOS 10.0

We are targeting iOS 10 + and we are facing lots of warnings on this deprecated API

@chshapiro
Copy link
Contributor

Hey @dmiluski and @edias,

We released version 3.3.0 yesterday which gets rid of all these warnings.
Please let us know if you have any further issues or if we can close out this issue.

Thanks,
Chava

@edias
Copy link

edias commented Jan 3, 2018

Hey @chshapiro,

I'm using Appboy-iOS-SDK (3.3.1) and I'm still getting:

/Appboy-iOS-SDK/AppboyUI/InAppMessage/ABKInAppMessageUIController.m:106:50: 'beforeInAppMessageDisplayed:withKeyboardIsUp:' is deprecated

@chshapiro
Copy link
Contributor

Hey @edias,

That deprecation message is intentional. The delegate method is marked as deprecated, but we are still supporting it to give people a grace period to adopt the new delegates.

If you still have questions or concerns about the warning message, could you create a separate issue for it? It's not directly related to this issue and we don't want to spam other people who are watching this issue.

Thanks,
Chava

@chshapiro
Copy link
Contributor

@edias closing this for now. Please reopen the issue if you have any further questions. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants