MOBILE-2827 icon: Use small icon for Android notifications
This commit is contained in:
		
							parent
							
								
									6f6e4449a7
								
							
						
					
					
						commit
						d6f5b5738c
					
				@ -59,6 +59,10 @@
 | 
			
		||||
        <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
 | 
			
		||||
        <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
 | 
			
		||||
        <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
 | 
			
		||||
        <resource-file src="resources/android/icon/drawable-ldpi-smallicon.png" target="app/src/main/res/mipmap-ldpi/smallicon.png" />
 | 
			
		||||
        <resource-file src="resources/android/icon/drawable-mdpi-smallicon.png" target="app/src/main/res/mipmap-mdpi/smallicon.png" />
 | 
			
		||||
        <resource-file src="resources/android/icon/drawable-hdpi-smallicon.png" target="app/src/main/res/mipmap-hdpi/smallicon.png" />
 | 
			
		||||
        <resource-file src="resources/android/icon/drawable-xhdpi-smallicon.png" target="app/src/main/res/mipmap-xhdpi/smallicon.png" />
 | 
			
		||||
    </platform>
 | 
			
		||||
    <platform name="ios">
 | 
			
		||||
        <icon height="57" src="resources/ios/icon/icon.png" width="57" />
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								resources/android/icon/drawable-hdpi-smallicon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								resources/android/icon/drawable-hdpi-smallicon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 15 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								resources/android/icon/drawable-ldpi-smallicon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								resources/android/icon/drawable-ldpi-smallicon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 14 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								resources/android/icon/drawable-mdpi-smallicon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								resources/android/icon/drawable-mdpi-smallicon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 15 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								resources/android/icon/drawable-xhdpi-smallicon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								resources/android/icon/drawable-xhdpi-smallicon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 15 KiB  | 
@ -94,7 +94,8 @@ export class AddonPushNotificationsProvider {
 | 
			
		||||
            return {
 | 
			
		||||
                android: {
 | 
			
		||||
                    senderID: CoreConfigConstants.gcmpn,
 | 
			
		||||
                    sound: !!soundEnabled
 | 
			
		||||
                    sound: !!soundEnabled,
 | 
			
		||||
                    icon: 'smallicon'
 | 
			
		||||
                },
 | 
			
		||||
                ios: {
 | 
			
		||||
                    alert: 'true',
 | 
			
		||||
 | 
			
		||||
@ -448,7 +448,7 @@ export class CoreLocalNotificationsProvider {
 | 
			
		||||
 | 
			
		||||
            if (this.platform.is('android')) {
 | 
			
		||||
                notification.icon = notification.icon || 'res://icon';
 | 
			
		||||
                notification.smallIcon = notification.smallIcon || 'res://icon';
 | 
			
		||||
                notification.smallIcon = notification.smallIcon || 'res://smallicon';
 | 
			
		||||
 | 
			
		||||
                const led: any = notification.led || {};
 | 
			
		||||
                notification.led = {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user