Reputation: 33
In Android app, code fires silent notification when app goes in background. In Delphi XE8 it works fine - no sound, no vibration, but it behaves differently in Delphi XE10 - no sound, but there is vibration [vibration is off in user permissions]. How I can remove vibration?
begin
MyNotification := NotificationCtr.CreateNotification;
try
MyNotification.Name := ' Name';
MyNotification.AlertBody := 'AlertBody';
MyNotification.Number := 0;
MyNotification.EnableSound := false;
MyNotification.FireDate := Now;
NotificationCtr.ScheduleNotification(MyNotification);
finally
MyNotification.DisposeOf;
end;
end;
Upvotes: 1
Views: 627