diff options
author | Xiangtian Dai <xiangtian@google.com> | 2017-08-03 19:05:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-03 19:05:25 -0700 |
commit | 5430b776ca6fea34d84dab09db39c51b51e551da (patch) | |
tree | b5396a5bd85574d41d42dcb4b00b1022e1440ecd /Firebase | |
parent | 9564abc9bf42ad8aa1ce540f9d3e7cf70319fbff (diff) |
Action code fixes and improvements (#176)
* Makes Auth sample in-app password reset work on iOS 8-.
* Sets default iOS bundle ID for action code settings.
* Adds an entry in the Auth sample app to verify email in app.
* Removes '-' from 'in-app' to be consistent with other messages in the Auth sample app.
Diffstat (limited to 'Firebase')
-rw-r--r-- | Firebase/Auth/Source/FIRActionCodeSettings.m | 14 | ||||
-rw-r--r-- | Firebase/Auth/Source/Public/FIRActionCodeSettings.h | 2 |
2 files changed, 12 insertions, 4 deletions
diff --git a/Firebase/Auth/Source/FIRActionCodeSettings.m b/Firebase/Auth/Source/FIRActionCodeSettings.m index 2a8fc7f..02807ff 100644 --- a/Firebase/Auth/Source/FIRActionCodeSettings.m +++ b/Firebase/Auth/Source/FIRActionCodeSettings.m @@ -14,11 +14,19 @@ * limitations under the License. */ - #import "FIRActionCodeSettings.h" +#import "FIRActionCodeSettings.h" - NS_ASSUME_NONNULL_BEGIN +NS_ASSUME_NONNULL_BEGIN - @implementation FIRActionCodeSettings +@implementation FIRActionCodeSettings + +- (instancetype)init { + self = [super init]; + if (self) { + _iOSBundleID = [NSBundle mainBundle].bundleIdentifier; + } + return self; +} - (void)setIOSBundleID:(NSString *)iOSBundleID { _iOSBundleID = [iOSBundleID copy]; diff --git a/Firebase/Auth/Source/Public/FIRActionCodeSettings.h b/Firebase/Auth/Source/Public/FIRActionCodeSettings.h index b2739dc..de56a3f 100644 --- a/Firebase/Auth/Source/Public/FIRActionCodeSettings.h +++ b/Firebase/Auth/Source/Public/FIRActionCodeSettings.h @@ -41,7 +41,7 @@ @property(assign, nonatomic) BOOL handleCodeInApp; /** @property iOSBundleID - @brief The iOS bundle ID, if available. + @brief The iOS bundle ID, if available. The default value is the current app's bundle ID. */ @property(copy, nonatomic, readonly, nullable) NSString *iOSBundleID; |