feat: Enable push subscription for mobile devices by default (#4321)
This commit is contained in:
		
					parent
					
						
							
								63a2566007
							
						
					
				
			
			
				commit
				
					
						9075c90c46
					
				
			
		
					 3 changed files with 28 additions and 23 deletions
				
			
		|  | @ -37,7 +37,7 @@ const unsubscribe = ({ registration, subscription }) => | |||
| 
 | ||||
| const sendSubscriptionToBackend = (subscription) => | ||||
|   axios.post('/api/web/push_subscriptions', { | ||||
|     data: subscription, | ||||
|     subscription, | ||||
|   }).then(response => response.data); | ||||
| 
 | ||||
| // Last one checks for payload support: https://web-push-book.gauntface.com/chapter-06/01-non-standards-browsers/#no-payload
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue