A man used an iPhone app and GPS tracker to locate a murder victim ahead of a fatal shooting linked to organised crime, a prosecutor has alleged.