Skip to content

Commit 21e12fa

Browse files
committed
[Mobile] Fix notification badge by accepting real type value from passed object github:5
Jobs: mobileappserver:5 [git-p4: depot-paths = "//depot/4eDimension/19R4/4DComponents/User Components/4D Mobile App Server/": change = 275096]
1 parent 275a818 commit 21e12fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Project/Sources/Methods/buildNotification.4dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ If ($isAPN)
4949

5050
// Fill badge
5151

52-
If (Value type:C1509($1.badge)=Is integer:K8:5)
52+
If ((Value type:C1509($1.badge)=Is integer:K8:5) | (Value type:C1509($1.badge)=Is real:K8:4))
5353

54-
$notification.aps.badge:=$1.badge
54+
$notification.aps.badge:=Int:C8($1.badge)
5555

5656
End if
5757

0 commit comments

Comments
 (0)