Parcourir la source

notification tests

Axel Nordh il y a 6 ans
Parent
commit
a2e5c77b36
3 fichiers modifiés avec 1 ajouts et 5 suppressions
  1. BIN
      Assets/narKampenLocal.db
  2. 1 1
      dbFiles/OnlineGames.php
  3. 0 4
      dbFiles/SendToDevice.php

BIN
Assets/narKampenLocal.db


+ 1 - 1
dbFiles/OnlineGames.php

@@ -145,7 +145,7 @@
 		$result = $conn->query($sql);
 		$data = $result->fetch_assoc();
 		require_once("SendToDevice.php");
-		$std = new SendToDevice();
+		$std = new SendToDevice()->SendToDevice("Din tur", "Det är din tur på När Kampen", $regId);
 		$std->SendYourTurnMessage($data['deviceId']);
 		
 	} else if ($callFunction === "GetPlayerPoints") {

+ 0 - 4
dbFiles/SendToDevice.php

@@ -15,8 +15,4 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' && (!empty($_POST['SendTo']))) {
     SendToDevice($_POST['title'], $_POST['messageBody'], $_POST['SendTo']);
 }
 
-function SendYourTurnMessage($regId) {
-	SendToDevice("Din tur", "Det är din tur på När Kampen", $regId);
-}
-
 ?>