nixzhu / proposer Goto Github PK
View Code? Open in Web Editor NEWMake permission request easier.
License: MIT License
Make permission request easier.
License: MIT License
Thanks for sharing your work!
I would like to if there is any way to prompt user for allowing push notifications?
Create a new branch swift_2.0 I will make a PR to that branch. This way wi will keep both version working. I will make a separate PR for each feature
#4 Relater to the RP
Hi
Xcode says UIUserNotificationSettings is deprecated in IOS 10. so now how can i use your library for notification permission?
Using Cocoapods we get some Swift 4 compiler errors should seems to be fix on master.
Could we have a new release to have these issues fixed? Thanks.
Last version cannot be compiled with Swift 4.1 (Xcode 9.4.1).
Proposer.swift:38:69: error: binary operator '==' cannot be applied to operands of type '() -> AVAudioSessionRecordPermission' and '_'
return AVAudioSession.sharedInstance().recordPermission == .undetermined
Maybe it would warrant a major version change?
Could you please add support for Carthage?
Hi, Thank you for this wonderful library. I however am having some trouble asking for permissions for Contacts. The thing is, when I use this following code, it just assumes that the callback is for the agreed action, and goes into case: .Authorized
in private method proposeToAccessContacts
in Proposer.swift. It doesn't even take any interaction from user and goes into authorized. Please help.
let contacts: PrivateResource = .Contacts
proposeToAccess(contacts, agreed: { self.delegate?.successAction(self) //Always successful without any user interaction }, rejected: { self.delegate?.failureAction(self) })
As UIUserNotificationSettings will be deprecated to iOS 11, do you have plans on also use UNNotificationSettings with @available in order to support from iOS 8 to 11?
https://developer.apple.com/documentation/usernotifications/unusernotificationcenter
https://developer.apple.com/documentation/uikit/uiusernotificationsettings
I have a crash in iOS 8, beacuse the library use Contacts library, but Contacts library is available in iOS 9.0
dyld: Library not loaded: /System/Library/PrivateFrameworks/ContactsPersistence.framework/Versions/A/ContactsPersistence
Referenced from: /System/Library/Frameworks/Contacts.framework/Contacts
Reason: no suitable image found. Did find:
/System/Library/PrivateFrameworks/ContactsPersistence.framework/Versions/A/ContactsPersistence: mach-o, but not built for iOS simulator
Hi, cant find these methods
self.alertNoPermissionToAccess(photos)
showProposeMessageIfNeedFor(photos, andTryPropose: propose)
am I supposed to write them myself ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.