File tree Expand file tree Collapse file tree 4 files changed +31
-9
lines changed Expand file tree Collapse file tree 4 files changed +31
-9
lines changed Original file line number Diff line number Diff line change 4
4
xmlns =" http://xamarin.com/schemas/2014/forms"
5
5
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
6
6
xmlns : prism =" http://prismlibrary.com" >
7
- <Application .Resources />
7
+
8
+ <Application .Resources >
9
+ <ResourceDictionary >
10
+ <Style TargetType =" Label" >
11
+ <Setter Property =" TextColor" Value =" Magenta" />
12
+ </Style >
13
+ </ResourceDictionary >
14
+ </Application .Resources>
8
15
</prism : PrismApplication >
Original file line number Diff line number Diff line change @@ -17,9 +17,22 @@ public void ConfigureService(INotifoMobilePush notifo)
17
17
{
18
18
notifo
19
19
. SetBaseUrl ( Constants . ApiUrl )
20
+ . SetApiVersion ( ApiVersion . Version_1_5 )
20
21
. UseFirebasePluginEventsProvider ( ) ;
21
22
22
23
notifo . OnNotificationOpened += Current_OnNotificationOpened ;
24
+ notifo . OnNotificationReceived += Notifo_OnNotificationReceived ;
25
+ notifo . OnLog += Notifo_OnLog ;
26
+ }
27
+
28
+ private void Notifo_OnLog ( object sender , NotificationLogEventArgs e )
29
+ {
30
+ System . Diagnostics . Debug . WriteLine ( "Notification log message: " + e . Message ) ;
31
+ }
32
+
33
+ private void Notifo_OnNotificationReceived ( object sender , NotificationEventArgs e )
34
+ {
35
+ System . Diagnostics . Debug . WriteLine ( "Notification received: " + e . Notification . Subject ) ;
23
36
}
24
37
25
38
private void Current_OnNotificationOpened ( object source , NotificationEventArgs e )
Original file line number Diff line number Diff line change 4
4
xmlns =" http://xamarin.com/schemas/2014/forms"
5
5
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
6
6
xmlns : prism =" http://prismlibrary.com"
7
+ xmlns : ios =" clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
8
+ ios:Page.UseSafeArea=" True"
7
9
prism:ViewModelLocator.AutowireViewModel=" True"
8
10
BackgroundColor =" White"
9
11
Title =" Events" >
19
21
Margin =" 8,0"
20
22
FontAttributes =" Bold"
21
23
FontSize =" 18"
22
- Text =" {Binding Subject}"
23
- TextColor =" Black" />
24
-
24
+ Text =" {Binding Subject}" />
25
+
25
26
<Label
26
27
Margin =" 8,0"
27
28
FontAttributes =" None"
28
29
FontSize =" 14"
29
- Text =" {Binding Body}"
30
- TextColor =" Black" />
31
-
32
- <Label
30
+ Text =" {Binding Body}" />
31
+
32
+ <Label
33
33
Margin =" 8,0"
34
34
FontAttributes =" None"
35
35
FontSize =" 14"
Original file line number Diff line number Diff line change 5
5
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
6
6
xmlns : prism =" http://prismlibrary.com"
7
7
prism:ViewModelLocator.AutowireViewModel=" True"
8
+ xmlns : ios =" clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
9
+ ios:Page.UseSafeArea=" True"
8
10
Title =" Login" >
9
11
10
12
<ContentPage .Content>
21
23
Text =" Enter API Key"
22
24
HorizontalOptions =" CenterAndExpand" />
23
25
24
- <Entry Text =" {Binding ApiKey, Mode=TwoWay}" />
26
+ <Editor Text =" {Binding ApiKey, Mode=TwoWay}" TextColor = " Magenta " BackgroundColor = " WhiteSmoke " />
25
27
26
28
<Button Command =" {Binding LoginCommand}" Text =" Login" />
27
29
</StackLayout >
You can’t perform that action at this time.
0 commit comments