Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit 3f6b11b

Browse files
committed
Added DEBUG flag for Ad-Hoc and enabled Push Notification Flag when in DEBUG mode
1 parent 3ddef24 commit 3f6b11b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CodeHub.iOS/AppDelegate.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
9090

9191
var features = Mvx.Resolve<IFeaturesService>();
9292

93+
94+
// Automatic activations in debug mode!
95+
#if DEBUG
96+
Mvx.Resolve<CodeFramework.Core.Services.IDefaultValueService>().Set(InAppPurchases.PushNotificationsId, true);
97+
#endif
98+
99+
93100
// Notifications don't work on teh simulator so don't bother
94101
if (MonoTouch.ObjCRuntime.Runtime.Arch != MonoTouch.ObjCRuntime.Arch.SIMULATOR && features.IsPushNotificationsActivated)
95102
{

CodeHub.iOS/CodeHub.iOS.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
<MtouchUseThumb>true</MtouchUseThumb>
9797
<CodesignProvision>Automatic:AdHoc</CodesignProvision>
9898
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
99+
<DefineConstants>DEBUG</DefineConstants>
99100
</PropertyGroup>
100101
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
101102
<DebugType>none</DebugType>

0 commit comments

Comments
 (0)