File tree Expand file tree Collapse file tree 4 files changed +29
-13
lines changed Expand file tree Collapse file tree 4 files changed +29
-13
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 1
- // ==========================================================================
1
+ // ==========================================================================
2
2
// Notifo.io
3
3
// ==========================================================================
4
4
// Copyright (c) Sebastian Stehle
@@ -19,17 +19,24 @@ public static INotifoMobilePush UseDefaults(this INotifoMobilePush notifo)
19
19
notifo
20
20
. SetSharedName ( "group.io.notifo.xamarin.sample" )
21
21
. SetBaseUrl ( Constants . ApiUrl )
22
+ . SetApiVersion ( ApiVersion . Version_1_5 )
22
23
. UseFirebasePluginEventsProvider ( ) ;
23
24
24
25
notifo . OnNotificationOpened += Current_OnNotificationOpened ;
25
- notifo . OnLog += JustLog ;
26
+ notifo . OnNotificationReceived += Notifo_OnNotificationReceived ;
27
+ notifo . OnLog += Notifo_OnLog ;
26
28
27
29
return notifo ;
28
30
}
29
31
30
- private static void JustLog ( object source , NotificationLogEventArgs e )
32
+ private static void Notifo_OnLog ( object sender , NotificationLogEventArgs e )
33
+ {
34
+ System . Diagnostics . Debug . WriteLine ( "Notification log message: " + e . Message ) ;
35
+ }
36
+
37
+ private static void Notifo_OnNotificationReceived ( object sender , NotificationEventArgs e )
31
38
{
32
- Console . WriteLine ( $ "DEBUG: Log { e . Message } Message Args: { e . MessageArgs } " , e . Message , e . MessageArgs ) ;
39
+ System . Diagnostics . Debug . WriteLine ( "Notification received: " + e . Notification . Subject ) ;
33
40
}
34
41
35
42
private static 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