Description: |
I can send a Push Notification from an MT4 program to my android like this SendNotification("Sell Dow Jones");
And it will ring the alert tone on my phone and print Sell Dow Jones on the screen.
What I want to do is to record an audio file on the phone saying "Sell Dow Jones" and have the push Notification play that file?
I think it should be possible but I can't see how to do it.
This seems to be talking about what I need https://stackoverflow.com/questions/24731591/android-gcm-pushnotification-add-add-custom-sound-file-in-app
And this is a part of my code for MT4 (Basically C++) where I send the push notification to my phone
/ Alert if between M5 50 & 100 EMAs & 100EMA Rising or Falling if (iMA(NULL, PERIOD_M5, 10, 0, MODE_EMA, PRICE_CLOSE, 0) > iMA(NULL, PERIOD_M5, 50, 0, MODE_EMA, PRICE_CLOSE, 0) && iMA(NULL, PERIOD_M5, 21, 0, MODE_EMA, PRICE_CLOSE, 0) > iMA(NULL, PERIOD_M5, 50, 0, MODE_EMA, PRICE_CLOSE, 0) && iMA(NULL, PERIOD_M5, 50, 0, MODE_EMA, PRICE_CLOSE, 0) > iMA(NULL, PERIOD_M5, 100, 0, MODE_EMA, PRICE_CLOSE, 0) && iMA(NULL, PERIOD_M5, 100, 0, MODE_EMA, PRICE_CLOSE, 0) > iMA(NULL, PERIOD_M5, 100, 0, MODE_EMA, PRICE_CLOSE, 10) && Bid = StrToTime("06:30") && TimeCurrent() |