28. The non-transitory computer-readable storage medium of claim 22 , wherein generating the notification comprises transmitting, via a communication unit, location information of the electronic device to an external device.
22. A non-transitory computer-readable storage medium comprising instructions executable to cause at least one processor of an electronic device to perform operations of: receiving a speech phrase; recognizing the speech phrase as a command to generate a notification; detecting, via at least one sensor, context data of the electronic device; determining a context score associated with the context data; determining whether to generate the notification at least based on a comparison of the context score to a threshold value; and generating the notification based on the comparison.