Use the SMTP configuration to send feedback from a player via email.
1
2
3
4
5
6
7
8
9
userId:="userId"username:="username"varscoreuint32=5message:="I love this game!"err:=systems.GetBaseSystem().RateApp(ctx,logger,nk,userId,username,score,message)iferr!=nil{returnerr}
Set push notification tokens on a user’s account so push messages can be received.
1
2
3
4
5
6
7
8
9
10
userId:="userId"deviceId:="deviceId"pushTokenAndroid:="pushTokenAndroid"pushTokenIos:="pushTokenIOS"preferences:=map[string]bool{}// Used to store device specific parameters.
err:=systems.GetBaseSystem().SetDevicePrefs(ctx,logger,db,userId,deviceId,pushTokenAndroid,pushTokenIos,preferences)iferr!=nil{returnerr}